Why we use <div class="section"> for making an ul or ol?? And what is the role of class ?? Why we write the class ?? | Sololearn: Learn to code for FREE!

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 ??

7/7/2019 7:46:13 PM

THE CRAZY ONE ✌️

5 Answers

New Answer

+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/1034/

+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>