W3C home > Mailing lists > Public > whatwg@whatwg.org > May 2009

[whatwg] Question on (new) header and hgroup

From: Bruce Lawson <brucel@opera.com>
Date: Thu, 07 May 2009 16:15:57 +0100
Message-ID: <op.utkfcvf1h8on37@bruce-pc>
I'm struggling to understand the reasons for <hgroup>: wouldn't one or
more h1..h6 elements wrapped in the same <header> imply just such a
grouping without the need for such an element?

To illustrate my query, what is the difference between

<header>
<h1>HTML 5</h1>
<h2>a new era of loveliness</h2>
<nav> ... </nav>
</header>

and

<header>
<hgroup>
<h1>HTML 5</h1>
<h2>a new era of loveliness</h2>
</hgroup>
<nav> ... </nav>
</header>

?

-- 
Bruce Lawson
Web Evangelist
www.opera.com (work)
www.brucelawson.co.uk (personal)
Received on Thursday, 7 May 2009 08:15:57 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:48 UTC