5 ms·
I haven't really thought about sectioning elements (<section>, <aside>, <nav>, and <article>) and the cool behaviour of a tag like <h1> when these tags are nest
by tony-allan 1y ago
I haven't really thought about sectioning elements (<section>, <aside>, <nav>, and <article>) and the cool behaviour of a tag like <h1> when these tags are nested.
- pests 1y agoWell it’s getting removed so only useful if you want to recreate the css they are removing.
- tony-allan 1y agoOops. Perhaps I need to read the article again!
- radicalriddler 1y agoValidation tools will also tell you if you have an H1 in a <section>, but no H1 outside of the section, because the <section> actually creates it's own scope, thus your page has no H1.
- ricardobeat 1y agoLooks like that kind of validation was premature. They mention in this article that the “creates its own scope” part was never actually implemented for accessibility, this change brings the display rules back inline with reality.
- radicalriddler 1y agoNice, I didn't know that. The difference between W3C and what browsers actually implement, if you don't laugh, you'll cry.