the difference between <section> and <div> | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

the difference between <section> and <div>

HTML/CSS

20th Sep 2021, 7:31 AM
ATBE
ATBE - avatar
3 Answers
+ 1
<section> element is defined as a block of related elements. <div> element is defined as a block of children elements.
20th Sep 2021, 8:53 AM
Satyam Das
Satyam Das - avatar
+ 1
<section> is semantic element introduced in HTML5 and <div> is division element used to separate documents' content. Although both are same but <section> gives the semantic meaning to web crawlers to find your content more easily to them :)
23rd Nov 2021, 3:20 PM
Nabin Bhatt
Nabin Bhatt - avatar