W3C home > Mailing lists > Public > whatwg@whatwg.org > April 2010

[whatwg] Headings and sections, role of H2-H6

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Fri, 30 Apr 2010 10:11:11 -0400
Message-ID: <4BDAE4FF.6070507@mit.edu>
On 4/30/10 8:02 AM, Nikita Popov wrote:
> I personally prefer using <h1-6> and do not see, why always using <h1>
> may be better.

If you're the only author, sure (maybe; see below).

If you're one of several co-authors on a document, with sectioning 
structure in flux, and you're supposed to produce one of the sections 
but don't know how deeply nested your section will be in the final 
document, then how are you supposed to use <h1-6> correctly?

Similarly, if you have a document being edited by one author, sections 
being changed, etc, it's easy for the 1-6 to get out of sync with 
reality.  Sane document-preparation systems auto-number and auto-size 
the headings for you.  This is just an attempt to have that in HTML.

> What would make much more sense, is to omit the rank fully, so only only
> has to write <h>.

Yes, and I'm fairly certain that's been discussed in the past.  But <h1> 
already exists, and people already use it and the new uses will degrade 
gracefully in UAs not supporting the new spec text much better than uses 
of <h> would.

> Beyond that, using <h> instead of <h1> would even be more backwards
> compatible to the HTML 4 use of headings.

But not to existing HTML4 UAs...

-Boris
Received on Friday, 30 April 2010 07:11:11 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:22 UTC