+ 2

article = div?

Why do I need a new tag if it means the same thing as a div?

8th May 2020, 10:11 AM
Михаил Соболев
Михаил Соболев - avatar
3 ответов
+ 3
To make it more readable. Example : <div>Hi, I am an article</div> <article>I am an article</article> Which one is more readable? :))
8th May 2020, 10:26 AM
Arb Rahim Badsa
Arb Rahim Badsa - avatar
+ 1
Clearly explained :)
8th May 2020, 10:37 AM
Михаил Соболев
Михаил Соболев - avatar
+ 1
in the old days it did the following in html: <div id = "article"> </div> <div id = "section"> </div> <div id = "nav"> </div> now in the new html5 format the new tags have been incorporated: <section> </section> <nav> </nav> <article> </aside> and many more, it would be good if you take a look
8th May 2020, 12:22 PM
Edwin Boada
Edwin Boada - avatar