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

Re: Why hgroup?

From: Kornel Lesiński <kornel@geekhood.net>
Date: Mon, 10 Jan 2011 22:24:22 -0000
To: "Tab Atkins Jr." <jackalmage@gmail.com>
Cc: "public-html@w3.org" <public-html@w3.org>
Message-ID: <op.vo35uwgwte2ec8@aimac.local>
On Mon, 10 Jan 2011 22:13:04 -0000, Tab Atkins Jr. <jackalmage@gmail.com>  
wrote:

>> Authors are free to use <div>, <header> or something else to style both
>> title and subtitle together if needed:
>>
>> <section>
>>        <header>
>>                <h1>title</h1>
>>                <subheading>subtitle</subheading>
>>        </header>
>>        …
>> </section>
>
> Indeed, authors are free to.  It comes for free with <hgroup>, though.
>  It also seems to be likely to be pretty common to want to apply at
> least some styles as a group.

However, <hgroup> also imposes additional restrictions on its content that  
<header> or <div> don't, so in the end authors have less flexibility.

-- 
regards, Kornel Lesiński
Received on Monday, 10 January 2011 22:24:53 UTC

This archive was generated by hypermail 2.3.1 : Monday, 29 September 2014 09:39:21 UTC