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

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?.

<http://www.whatwg.org/specs/web-apps/current-work/multipage/sections.html#the-hgroup-element>
| 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 (?).

<http://www.w3.org/TR/xhtml2/mod-structural.html#sec_8.5.>
| 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?.

Received on Friday, 30 July 2010 02:26:55 UTC