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

Re: Why hgroup?

From: Anne van Kesteren <annevk@opera.com>
Date: Thu, 06 Jan 2011 18:55:32 +0100
To: "Steve Faulkner" <faulkner.steve@gmail.com>
Cc: "HTML WG" <public-html@w3.org>
Message-ID: <op.vowequsv64w2qv@anne-van-kesterens-macbook-pro.local>
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:00:09 GMT

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