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

7th Jul 2019, 7:46 PM
THE CRAZY ONE ✌️
THE CRAZY ONE ✌️ - avatar
5 Réponses
+ 4
Ok here <div> tag is an block element Orderlist <ol> and unordered list <ul> need multiple lines so we are using <div> tag.
7th Jul 2019, 9:52 PM
KingDaniel2004
KingDaniel2004 - avatar
7th Jul 2019, 9:55 PM
KingDaniel2004
KingDaniel2004 - avatar
+ 3
https://www.sololearn.com/learn/HTML/1032/?ref=app
7th Jul 2019, 9:58 PM
KingDaniel2004
KingDaniel2004 - avatar
+ 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.
7th Jul 2019, 7:49 PM
RISHABH MISHRA
RISHABH MISHRA - avatar
+ 2
Class here refer to the type of <div>
7th Jul 2019, 7:50 PM
RISHABH MISHRA
RISHABH MISHRA - avatar