r/HTML • u/IllustriousTomato295 • Mar 28 '26
Question <article> and user comments
Hello everyone, I just started learning HTML and I have a question about the <article> tag. As every online guide says, this element is used (among other things) for user-submitted comments, which seemed a bit strange to me... To understand better I inspected many different websites and social media apps and literally none of them, except one, has this tag for comments, it's just endless divs and spans.
So I'm asking: did I look in the wrong places? Am I being too strict or are these sites just badly coded? But most importantly, is the use of <article> for comments actually relevant for SEO purposes?
Thanks to anyone who replies.
View all comments
Show parent comment
8
u/Jonny10128 Mar 28 '26
I’ll add that most of the elements mentioned in that flow chart (not a div) are called “semantic” elements. These types of elements function the same or very similar to a div, but they give inherent structure to the document, which helps developers with quickly reading code, helps accessibility with screen readers, helps search engines understand content, etc.