Has <article> really replaced <div> ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Has <article> really replaced <div> ?

While learning HTML5 with SoloLearn I read "The <article> element replaces the <div> element that was widely used in HTML4" but what I've observed is that <div> is still widely used. In fact I have hardly seen anyone using <article>. Likewise in bootstrap as well <div> is widely implemented. So is SoloLearn right in saying that <article> has replaced <div> ?

30th Apr 2017, 6:37 AM
Arsalan Zargar
Arsalan Zargar - avatar
5 Answers
+ 20
We put <div> inside <article>, <article> is sementic element of HTML5, and they don't do anything but just describe the sections of webpage, while <div> defines the section. So, we do it as- <article> <div> ... </div> </article>
30th Apr 2017, 7:38 AM
Sachin Artani
Sachin Artani - avatar
+ 8
wait wait i forgot what is div used for
30th Apr 2017, 6:48 AM
Krieg7
Krieg7 - avatar
+ 7
You have to understand that <article> and other new semantic tags provided by Html5 would help to use widely less <div> generic block level containers, as you can use the new ones instead of using kind of <div id="article">. But <div> isn't deprecated at all, and should be used when no semantically adapted element is available for your use ^^
30th Apr 2017, 7:44 AM
visph
visph - avatar
+ 6
Not really if you look at the source code of websites some of them still uses div tags I rarely see article tags but there are some of them
30th Apr 2017, 7:04 AM
Complex
Complex - avatar
+ 6
right the articles....
30th Apr 2017, 7:39 AM
Krieg7
Krieg7 - avatar