Re: Why hgroup?

Steve Faulkner, Thu, 6 Jan 2011 18:17:59 +0100:
> 
> What advantages does <hgroup> offer over a <subtitle> or <subheading> 
> or <whatever> element?
> 
> <h1>heading</h1>
> <whatever>subtitle</whatever> 

(1) Most important benefit: <hgroup>, effectively, is a generic (but 
oddly named) heading elememt.

(2) It is fairly back-compatible. E.g. to create an outline that is 
fairly similar  - semantically - both with and without HTML5 parsing, 
one could do this:

	<hgroup>
		<h1>Main section heading</h1>
		<h6>Subheading</h6>
        <!-- thus h6 instead of e.g. h2 -->
	</hgroup>
	<p>Lorem ipsum
	<h2>Next section heading.</h2>

(3) Some authoring and semantic advantages, as mentioned by Anne. 
Similarity with the <dl> content model.

(4) What content model would <whatever> have? 
-- 
leif halvard silli

Received on Saturday, 8 January 2011 12:06:48 UTC