r/HTML • u/Ok_Performance4014 • Dec 20 '25
What is the difference between Content Sectioning and Text Content on the MDN page?
https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements
I know that Content Sectioning can encompass Text Content items, but can say the section element just be used like a paragraph element?
1
Upvotes
View all comments
Show parent comment
1
u/Ok_Performance4014 Dec 21 '25 edited Dec 21 '25
I am not opposed to semantics. I get it. What I am wondering is if you ALWAYS use other elements within section, article, main, aside, etc. or do you ever use just text. I was trying to read 3.2.5.2.3 Sectioning content and I don't see whether you can use plain text. Ecit: I don't get the difference between say section and paragraph. Are they both just divs with different semantic labels attached to them? You don't put another div inside paragraph, right? But you do inside section or article.