by crazygringo · 9y ago · 0 comments
Current models all follow the top-down approach -- assume you know your top sections when you start (H1), then drill down into H2, H3, etc.
But just as often you want to do bottom-up -- start with a short article with a single heading (H1), then add a sibling section (turn both H1's into H2's, add the "real" H1), then put those both under a larger section (H2's become H3's, H1's turn into H2's, new H1), and so on.
Any manual choice of heading levels is just dumb, frankly. <h> is a great solution -- I just want to see something similar for word processors as well!
The outline is defined using sections, and you can use all h1s (or at least h1s are scoped to the section, so more easily managed)
While it's technically still correct, it might backfire in reality. So maybe this <h>-element would be a welcome addition to the spec.
https://www.w3.org/wiki/HTML/Usage/Headings/h1only#Heading_s... http://html5doctor.com/computer-says-no-to-html5-document-ou...
What makes you think they will implement the new one correctly ?
Plus they are wrong in the first place.
/* user agent stylesheet */
:-webkit-any(article,aside,nav,section) h1 {
font-size: 1.5em;
-webkit-margin-before: 0.83em;
-webkit-margin-after: 0.83em;
}
And <h1> keeps shrinking as you nest <section>s. So yes, someone has actually implemented it. (I personally don't like the <article> part, but well -- whatever.)