W3C home > Mailing lists > Public > public-html@w3.org > December 2010

Re: suggestion for abolition of <hgroup>

From: James Graham <jgraham@opera.com>
Date: Thu, 02 Dec 2010 11:30:36 +0100
Message-ID: <4CF7754C.5000900@opera.com>
To: Bruce Lawson <brucel@opera.com>
CC: Leif Halvard Silli <xn--mlform-iua@xn--mlform-iua.no>, HTML WG <public-html@w3.org>
On 12/02/2010 11:15 AM, Bruce Lawson wrote:

> So, let's make it explicit - so people like Leif who do want adjacent
> headings in a header but not suppress one in the outline. But instead of
> a weird grouping element, let's have a subtitle attribute that people
> can use to suppress a h1 .. h6 from the outline.
>
> This
>
> <h1>BruceLawson.co.uk</h1>
> <h2 subtitle>Gorgeousness in a gimp mask</h2>

Interesting idea. It leaves open some edge cases though. Presumably if 
you have a <section> with a heading the subtitle is the subtitle of that 
section:

<section>
<h1>I am a heading</h1>
<h2 subtitle>I am an unamusing subtitle</h2>
</section>

What happens if there is no non-subtitle heading?

<section>
<h2 subtitle>I am having an identity crisis</h2>
</section>

It also seems like people might mistakenly use it for subheadings rather 
than subtitles:

<section>
<h1>I am a heading</h1>
<p>I am some text headed by that h1</p>
<h2 subtitle>I am a subheading</h2>
<p>I am some text that is expecting to be headed by the h2 but is 
actually headed by the h1</p>
</section>
Received on Thursday, 2 December 2010 10:31:17 UTC

This archive was generated by hypermail 2.3.1 : Thursday, 29 October 2015 10:16:07 UTC