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

On Thu, Apr 7, 2011 at 6:37 PM, Steve Faulkner <faulkner.steve@gmail.com> wrote:
> what are the arguments for/against adding a role value to indicate when a
> h1-h6 is acting as a subheading?
>
> <h1>heading</h1>
> <h2 role=subheading> subtitle </h2>
>
> - removes need for hgroup

Does that suggest removing hgroup from HTML5 spec or keeping it but
discourage the use of it?
Given that: major browsers now recognize hgroup in parsing and styling
level [1][2][3][4][5]; some people have already start using it; and
there are lots of books on HTML5 markup talking about using hgroup
along with sectioning elements, so I don't really want hgroup to be
removed from the spec...

I don't have a strong opinion about adding a role value, though.

[1] http://msdn.microsoft.com/en-US/ie/ff468705.aspx#_HTML5_Semantic_Elements
[2] http://www.apple.com/safari/features.html#technologies
[3] http://www.opera.com/docs/specs/presto27/html5/
[4] https://developer.mozilla.org/en/HTML/Element/hgroup
[5] http://chrome.blogspot.com/2010/10/bringing-another-chrome-release-to-you.html

Regards,
-- 
Masataka Yakura
<myakura.web@gmail.com>

Received on Friday, 8 April 2011 09:01:32 UTC