What is the difference between article, section and div in html? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

What is the difference between article, section and div in html?

3rd Nov 2016, 10:16 AM
Digital Saurav
Digital Saurav - avatar
2 Answers
+ 4
its only semantic difference. All can work same, but google's bots position better page if contain html5 tags, and its easier to underatand code by other ppl if u use simple html5 tags. exemple: <div class="section"> ... </div> in html5: <section> ... </section> Ofc, in html5 we have more new tags. You can search an article to know all of them.
3rd Nov 2016, 10:44 AM
Mateusz Maurycy Mazur
Mateusz Maurycy Mazur - avatar
+ 1
@mateusz maurycy mazur so u mean div tag is not used?i mean <div class="x"> is equal to <x>? so why still in most of codes i see ppl use div tag a lot? i can't understand help me😔
9th Feb 2017, 10:43 PM
Aref moloughi
Aref moloughi - avatar