0

What is the difference between div tag and section tag in html?

5th Jul 2017, 4:25 PM
Rishabh Jain
Rishabh Jain - avatar
2 Respuestas
+ 3
<section> is semantically less generic than <div>, and both could be differently default styled by browsers...
5th Jul 2017, 4:31 PM
visph
visph - avatar
+ 2
"The <section> tag defines sections in a document, such as chapters, headers, footers, or any other sections of 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."
5th Jul 2017, 4:30 PM
AgentSmith