W3C home > Mailing lists > Public > public-html@w3.org > January 2011

Re: Why hgroup?

From: Leif Halvard Silli <xn--mlform-iua@xn--mlform-iua.no>
Date: Sat, 8 Jan 2011 13:06:14 +0100
To: Steve Faulkner <faulkner.steve@gmail.com>
Cc: HTML WG LIST <public-html@w3.org>
Message-ID: <20110108130614740746.20567fc1@xn--mlform-iua.no>
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:

		<h1>Main section heading</h1>
        <!-- thus h6 instead of e.g. h2 -->
	<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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 9 May 2012 00:17:18 GMT