WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: roles and headers

for

From: Dave Merrill
Date: May 1, 2013 9:36AM


I *do not* consider myself an expert, but that said, you've probably seen
the banner role guidelines here, where he suggests applying it to the main
header tag:
http://blog.paciellogroup.com/2013/02/using-wai-aria-landmarks-2013/

Also, I assume you're not just applying that one role, right? I htink it's
only appropriate if you plan to use ARIA roles throughout your site,
applying all relevant ones to each page.

Dave Merrill


On Wed, May 1, 2013 at 11:15 AM, Sandy < <EMAIL REMOVED> > wrote:

> hey all,
>
> I would like to know any best practices for using roles instead of
> headers. Here is an approach that makes sense to me, and I would like to
> know if it makes sense to the experts on this list.
>
> Thanks in advance.
>
> home page works like this:
>
> <div id="banner" role="banner">
> <h1>Name of the company</h1>
> <h2>company tag line</h2>
> </div>
>
> content page works like this:
>
> <div id="banner" role="banner">
> Name of the company
> company tag line
> </div>
>
> <h1>Page title</h1>
>
>
> Thanks for taking the time to look at this.
>
> Best regards, Sandy
> > > >



--
Dave Merrill