0
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 Respostas
+ 4
Ok here <div> tag is an block element
Orderlist <ol> and unordered list <ul> need multiple lines so we are using <div> tag.
+ 3
https://www.sololearn.com/learn/HTML/1032/?ref=app
+ 2
<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.
+ 2
Class here refer to the type of <div>