3 ms·
The article says > Do not rely on default browser styles for conveying a heading hierarchy. Explicitly define your document hierarchy using <h2> for second-lev
by zcorpan 1y ago
The article says
> Do not rely on default browser styles for conveying a heading hierarchy. Explicitly define your document hierarchy using <h2> for second-level headings, <h3> for third-level, etc.
- jpc0 1y agoThe argument I was making was what is why would <main> <h1>Main Heading</h1> section..h2... Etc </main> <aside> <h1>Aside heading</h1> section...h2... </aside> Be incorrect? The original html standard clearly stated this was acceptable but now there should only be a single H1 which is the page heading and all other headings should be H2 and lower. What if the page content doesn't actually have a single main heading? This change fundamentally changes the semantics of something which has had unclear semantics for decades and which actually rendered what I typed above correctly in the past. Now it would not be rendered correctly anymore.
- zcorpan 1y agoThe spec allows multiple top-level headings: https://html.spec.whatwg.org/multipage/sections.html#headings-and-outlines-2 https://html.spec.whatwg.org/multipage/sections.html#heading...