+ 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> ?
5 Antworten
+ 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>
+ 8
wait wait i forgot what is div used for
+ 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 ^^
+ 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
+ 6
right the articles....