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

Re: Why hgroup?

From: Steve Faulkner <faulkner.steve@gmail.com>
Date: Thu, 6 Jan 2011 19:04:11 +0100
Message-Id: <20847053-81D2-4280-8686-4B2367A9E58B@gmail.com>
Cc: HTML WG <public-html@w3.org>
To: Anne van Kesteren <annevk@opera.com>
So sibling selectors are not good enough for CSS/JavaScript & shared classes for CSS ?

What CSS/JavaScript operations are made easier and what is the likely frequency of their use?

i.e. Is there a reasonable tradeoff between providing a clearer semantic and the suggested advantages of hgroup?

Regards
Stevef 

On 6 Jan 2011, at 18:55, "Anne van Kesteren" <annevk@opera.com> wrote:

> On Thu, 06 Jan 2011 18:17:59 +0100, Steve Faulkner <faulkner.steve@gmail.com> wrote:
>> What advantages does <hgroup> offer over a <subtitle> or <subheading> or <whatever> element?
>> 
>> <h1>heading</h1>
>> <whatever>subtitle</whatever>
> 
> It's much more clear which two elements are tied and you can more easily treat them as a single unit from a CSS/JavaScript perspective.
> 
> 
> -- 
> Anne van Kesteren
> http://annevankesteren.nl/
Received on Thursday, 6 January 2011 18:08:16 GMT

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