Re: role="subheading" or role="subtitle" to replace hgroup

Benoit Piette, Fri, 8 Apr 2011 07:33:25 -0400:

A)
> <hgroup>
> <h1>My real heading</h1>
> <p role=subheading>Silence is foo</p>
> </hgroup>
> 
> <hgroup>
> <h1>My real heading</h1>
> <h2 role=subheading>Silence is foo</h2>
> </hgroup>
> 
> Normal use cases of hgroup, but with subheading.

B)
> <hgroup>
> <h1>Search by</h1>
> <h2>Name</h2>
> </hgroup>
> ...
> <hgroup>
> <h1>Search by</h1>
> <h2>City</h2>
> </hgroup>
> 
> etc
> 
> You have a group of headings that are tied together and should effect 
> the outline.

+1 

Except for one thing: In both A) and B), the <h2> can be viewed as a 
subheading. Thus, there really should be a more telling name for that 
attribute.

The question then is: what is it that the attribute is supposed to do?

Proposal, if the attribute's name conveys that the <h2> is a caption 
for <h1> then a few things would (probably) become self-evident to 
authors and those learning HTML5:

 * it gets understandable why one can't use the
   attribute *outside* <hgroup>
 * it (presumably) would get clear, from the attribute's name,
   that it removes the <h2> from the outline

A names could probably be possible, but the name @hcaption fits with 
<hgroup>.
-- 
leif halvard silli

Received on Friday, 8 April 2011 14:24:28 UTC