F
Frank Olieu
Jim Higson said:This is why XHTML2 doesn't have h1, h2 ... h9 tags - it just has one header
tag, and the level of the header is defined by how many section tags it has
as ancestors. (snip)
So, under XHTML2 it will be impossible to improperly nest your headings,
which I think is rather neat.
Yes, neat indeed.
BTW, as you probably know, WHATWG has a similar, but slightly different
approach:
They also have a <section> element in their proposal, while they stick to
h1...h6 for headings (for backward compatibility). These headings may be used
arbitrarily, but they recommend using /only/ <h1>, in nested sections, in the
same way you would with <h> in XHTML2 (i.e. a third-level <h1> would be
equivalent to an <h3>).
(http://www.whatwg.org/specs/web-apps/current-work/#headings1)
Although not quite compliant with current HTML semantics, one could actually
use this method right *now* in HTML4 (using divs, h1s and appropriate css).
But I don't know what consequences it could have with search engines, for
instance...