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 21:26:45 -0000
To: public-html@w3.org
Cc: "Anne van Kesteren" <annevk@opera.com>
Message-ID: <op.vo326vftte2ec8@aimac.local>
On Mon, 10 Jan 2011 20:58:04 -0000, Tab Atkins Jr. <jackalmage@gmail.com>  

> 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:


regards, Kornel Lesiński
Received on Monday, 10 January 2011 21:27:16 UTC

This archive was generated by hypermail 2.4.0 : Saturday, 9 October 2021 18:45:29 UTC