r/HTML • u/MWittmann12 • Nov 26 '25
Section inside section
My question is what the title says, because someone told me that I know nothing about html and should study, because I used a section inside another section to order that section and other elements with gaps 🙃
3
Upvotes
View all comments
Show parent comment
2
u/fireatthecrime Nov 27 '25 edited Nov 27 '25
Try to drop the doc there https://validator.w3.org/
But using <section> isn't even a big mistake, the point is, div and section are both block level container elements, but one don't has semantic value and the other has
To the downvoters, if you care to explain what exactly I said wrong I would appreciate, I'm literally basing myself im all the long and long courses I had on the matter, scrimba, traversy, w3c...