Re: Why hgroup?

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