+ 1

Div vs Section vs Article

<div>, <section>, and <article>. What's the difference between these tags? Because I feel like they're essentially doing the same thing. I want to know when do I use either of them? I only kinda understand where to use <header> and <footer>. P.S. Also are there any other "generic content containers" or whatever it's called?

25th Nov 2019, 9:34 AM
Rick Sanchez
Rick Sanchez - avatar
5 Answers
25th Nov 2019, 10:11 AM
Gordon
Gordon - avatar
+ 1
Net-clicks But how is it better than just regular divs?
25th Nov 2019, 10:10 AM
Rick Sanchez
Rick Sanchez - avatar
+ 1
it's not for seo, sorry should be aria instead Accessible Rich Internet Applications (ARIA) https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA assistive technologies interprets semantic elements, so semantic elements are always preferred.
25th Nov 2019, 10:15 AM
Gordon
Gordon - avatar
0
In the last version of html (4)<div> was only, but they are new tags like <article> <section>, and all containers. If you have articles on the site, such as the news site, use <article> inside and and put a section inside it. for the title of the article and another for the picture and a third for the author ...
30th Nov 2019, 3:47 PM
Ahmed Belkhodja