Re: Why hgroup?

On Mon, 10 Jan 2011 20:58:04 -0000, Tab Atkins Jr. <jackalmage@gmail.com>  
wrote:

> That is, people often *want* structure like:
>
> <dl>
>   <di>
>     <dt>term
>     <dd>data
>   </di>
>   <di>
>     <dt>term
>     <dd>data
>   </di>
> </dl>
>
> <hgroup> offers that sort of grouping functionality.
> <h1>/<subheading> does not - they suffer from the same problems that
> <dt>/<dd> do currently.

That's incorrect. <subheading> doesn't suffer from that problem.

<dt>/<dd> grouping problem is caused by combination of two things:

  1. many sets of <dt>/<dd> are used within same element (so <dl> is not a  
wrapper for each individual set)
  1. <dl> *required* as their parent (so you can't wrap them in a <div> or  
something else)

neither of which apply to <h1>/<subheading>.

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>

-- 
regards, Kornel Lesiński

Received on Monday, 10 January 2011 21:27:16 UTC