Eric Eggert, W3C/WAI
Eric Eggert, W3C/WAI
role="presentation"
or aria-hidden="true"
on a visible focusable element nav
element has the role
navigation
header
, footer
, main
, aside
, section
, article
<header>
elementbanner
, if not inside of <article>
or <section>
<header>
<img src="/images/logo.png" alt="SpaceBear Inc.">
</header>
<footer>
elementcontentinfo
, if not inside of <article>
or <section>
<footer>
<p>© 2014 SpaceBears Inc.</p>
</footer>
<nav>
elementnavigation
<nav aria-label="Main Navigation">
…
</nav>
…
<nav aria-labelledby="quicknav-heading">
<h5 id="quicknav-heading">
Quick Navigation
</h5>
…
</nav>
<main>
elementmain
<main>
<h1>Stellar launch weekend for the SpaceBear 7!</h1>
…
</main>
<aside>
elementcomplementary
<aside>
<h3>Related Articles</h3>
…
</aside>
search
<form action="…">
<div role="search">
<input type="search" aria-label="Search">
<button type="submit">Search</button>
</div>
</form>
<section>
elementregion
<section>
<h2>Chapter 2</h2>
…
</section>
<article>
elementarticle
<article>
<h2>Space Bear Classic</h2>
…
</article>
<article>
<h2>Space Bear Extrem</h2>
…
</article>
<ul>
<li><a href="…">Home</a></li>
<li><a href="…">Shop</a></li>
<li><a href="…">SpaceBears</a></li>
<li><a href="…">MarsCars</a></li>
<li><a href="…">Contact</a></li>
…
</ul>
Important ARIA attributes:
ARIA does not change input methods or how the website works. Every keyboard interation needs to be replicated by the programmer to match native use.
<div role="menubar">
<ul role="menu" aria-label="functions" id="appmenu">
<li role="menuitem" aria-haspopup="true">File
<ul role="menu">
<li role="menuitem">New</li>
<li role="menuitem">Open</li>
<li role="menuitem">Print</li>
</ul>
</li>
…
</ul>
</div>
Key | Action |
---|---|
tab ⇥, right → | Select the next top-level menu item |
shift ⇧ + tab ⇥, left ← | Select the previous top-level menu item |
return/enter ↵, space, down ↓ | Open the submenu, select first submenu item. |
up ↑ | Open the submenu, select last submenu item. |
esc | Leave the menu |
Key | Action |
---|---|
tab ⇥, right →, | Close the submenu, select the next top-level menu item |
shift ⇧ + tab ⇥, left ← | Close the submenu, select the previous top-level menu item |
return/enter ↵, space | Carry out function of this item. (In this example: bring up a dialog box with the text of the chosen menu item.) |
Key | Action |
---|---|
down ↓ | Select next submenu item |
up ↑ | Select previous submenu item |
esc | Close the submenu, select the current top-level menu item |
<div class="carousel" role="region" aria-label="Recent news">
…
</div>
if (announceSlide) {
slides[new_current].setAttribute('aria-live', 'polite');
}
Help improve new WAI tools and resources. We have 3 different prototypes that we'd love for you to try out and give us feedback on.
We will be in Room JBWS 165 most of Monday and Tuesday. Please come by if you have 10 minutes or so and are willing to take a look.
Meeting on Wednesday 13 May and Thursday 14 May around AccessU. We welcome a limited number of visitors to this EOWG face-to-face.
If you would be interested in participating in the meeting and you are not a current EOWG participant, please e-mail EOWG Chairs Sharron and Shawn (srush@knowbility.org,shawn@w3.org).