WebAIM - Web Accessibility In Mind

E-mail List Archives

roles and headers

for

From: Sandy
Date: May 1, 2013 9:15AM


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