« Web, HTML, Tech Forum

Is there really any difference between a div element and section, article, etc?

2 Replies

Sort Replies:

Reply by Gluma

posted

Admittedly, I dunno much in-depth knowledge related to HTML. Therefore, I suggest looking at this answer I found on a Stack Overflow forum thread LMAO You probably can understand the answer better than I could. Short answer is that, yes, there’s a difference apparently


Permalink Report Reply

Reply by Andrey Orlov

posted

Visually they are not much different. In terms of robots or screen readers viewing the page, there is a huge difference. Because a div is just a container for anything, but sections, articles, etc. must contain relevant content.


Permalink Report Reply