+ 2

What is difference between section tag and div tag ??

7th Jul 2019, 2:27 PM
Utsav Parikh
Utsav Parikh - avatar
3 Answers
+ 6
Hey there, watch this video to fully understand 😃 Video 👇 https://m.youtube.com/watch?v=swWeWesZVZU ☝ đŸŽ„ When to use Section vs Article vs Div in Html? - YouTube
7th Jul 2019, 2:40 PM
KingDaniel2004
KingDaniel2004 - avatar
+ 2
Div is a general page division tag that has been around in HTML before HTML 5, whilst section is a Semantic tag that was introduced with HTML5. Div is a bit more general purpose and can work with a combination of most tags, whilst Section works best with other HTML5 semantic tags like Article, Footer etc
7th Jul 2019, 3:17 PM
William Mabotja
William Mabotja - avatar
+ 1
It becomes more clear when you learn more about Accessibility (how browser reads it for visually impaired users) and Search Engine Optimization. If these things are none of your concern, you can use divs
9th Jul 2019, 5:52 AM
Rajeev Thapa
Rajeev Thapa - avatar