Why we use <div class="section"> for making an ul or ol?? And what is the role of class ?? Why we write the class ??
5 Answers
New Answer7/7/2019 7:46:13 PM
THE CRAZY ONE ✌️5 Answers
New AnswerOk here <div> tag is an block element Orderlist <ol> and unordered list <ul> need multiple lines so we are using <div> tag.
<section> is a logical container of the page or article. Sections can be used to divide up content within an article. For example, a homepage could have a section for introducing the company, another for news items, and still another for contact information. Each <section> should be identified, typically by including a heading (h1-h6 element) as a child of the <section> element.
Sololearn Inc.
535 Mission Street, Suite 1591Send us a message