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

Christoph Päper christoph.paeper at crissov.de
Fri Jul 30 02:26:55 PDT 2010

Ian Hickson:
> On Fri, 30 Apr 2010, Nikita Popov wrote:
>> Beyond that, using <h> instead of <h1> would even be more backwards 
>> compatible to the HTML 4 use of headings.
> Actually, it would be less compatible, since it wouldn't render like a 
> heading in older browsers.

XHTML2’s ‘h’ is, especially in this regard, closer to HTML5’s ‘hgroup’ than to ‘h1’.

| The |hgroup| element represents the heading of a section. (…)
| The rank of an |hgroup| element is the rank of the highest-ranked 
| |h1|–|h6| element descendant of the |hgroup| element, if there are 
| any such elements, or otherwise the same as for an |h1| element (…).

| Structured headings use the single |h| element, in combination with 
| the |section| element to indicate the structure of the document, 
| and the nesting of the sections indicates the importance of the 
| heading. The heading for the section is the one that is a child 
| of the |section| element.

PS: No, I’m not proposing (again) to rename ‘hgroup’.

More information about the whatwg mailing list