+ 1

What's the deffrence between <div> and <section> ?

somehow i see they are the same

22nd Jul 2019, 6:29 PM
Mohammad Al-Turkawi
Mohammad Al-Turkawi - avatar
2 Answers
+ 7
The <section> tag defines sections in a document, such as chapters, headers, footers, or any other sectionsof the document. whereas: The <div> tag defines a division or a section in an HTML document. The <div> tag is used to group block-elements to format them with CSS.
22nd Jul 2019, 6:32 PM
Muaz Ahmad
Muaz Ahmad - avatar
+ 1
div is more general.
23rd Jul 2019, 12:11 AM
Sonic
Sonic - avatar