Tutorial by Examples: l

A cell containing header information for a column. <table role="grid"> <thead> <tr> <th role="columnheader">Day 1</th> <th role="columnheader">Day 2</th> <th role="columnheader">Day ...
A presentation of a select; usually similar to a textbox where users can type ahead to select an option, or type to enter arbitrary text as a new item in the list. <input type="text" role="combobox" aria-expanded="false"> Typically, you would use JavaScript to...
A supporting section of the document, designed to be complementary to the main content at a similar level in the DOM hierarchy, but remains meaningful when separated from the main content. <div role="complementary"> <h2>More Articles</h2> <ul> <!-- ...
A large perceivable region that contains information about the parent document. <p role="contentinfo"> Author: Albert Einstein<br> Published: August 15, 1940 </p>
A definition of a term or concept. <span role="term" aria-labelledby="def1">Love</span> <span id="def1" role="definition">an intense feeling of deep affection.</span>
A dialog is an application window that is designed to interrupt the current processing of an application in order to prompt the user to enter information or require a response. <div role="dialog"> <p>Are you sure?</p> <button role="button">Yes</b...
A list of references to members of a group, such as a static table of contents. <ul role="directory"> <li><a href="/chapter-1">Chapter 1</a></li> <li><a href="/chapter-2">Chapter 2</a></li> <li><a ...
A region containing related information that is declared as document content, as opposed to a web application. <div role="document"> <h1>The Life of Albert Einstein</h1> <p>Lorem ipsum...</p> </div>
A landmark region that contains a collection of items and objects that, as a whole, combine to create a form. Using the semantically correct HTML element <form> implies default ARIA semantics, meaning role=form is not required as you should not apply a contrasting role to an element that is a...
A grid is an interactive control which contains cells of tabular data arranged in rows and columns, like a table. <table role="grid"> <thead> <!-- etc --> </thead> <tbody> <!-- etc --> </tbody> </table>
A cell in a grid or treegrid. <table role="grid"> <thead> <!-- etc --> </thead> <tbody> <tr> <td role="gridcell">17</td> <td role="gridcell">64</td> <td role="gr...
A set of user interface objects which are not intended to be included in a page summary or table of contents by assistive technologies. <div role="group"> <button role"button">Previous</button> <button role"button">Next</button> &lt...
A heading for a section of the page. <h1 role="heading">Introduction</h1> <p>Lorem ipsum...</p>
A container for a collection of elements that form an image. <figure role="img"> <img alt="A cute cat." src="albert.jpg"> <figcaption>This is my cat, Albert.</figcaption> <figure>
An interactive reference to an internal or external resource that, when activated, causes the user agent to navigate to that resource. In the majority of cases setting an ARIA role and/or aria-* attribute that matches the default implicit ARIA semantics is unnecessary and not recommended as these...
A group of non-interactive list items. <ul role="list"> <li role="listitem">One</li> <li role="listitem">Two</li> <li role="listitem">Three</li> </ul>
A widget that allows the user to select one or more items from a list of choices. <ul role="listbox"> <li>One</li> <li>Two</li> <li>Three</li> </ul> Typically, you would use JavaScript to build the multiple-selection functionali...
A single item in a list or directory. <ul role="list"> <li role="listitem">One</li> <li role="listitem">Two</li> <li role="listitem">Three</li> </ul>
A type of live region where new information is added in meaningful order and old information may disappear. <ul role="log"> <li>User 1 logged in.</li> <li>User 2 logged in.</li> <li>User 1 logged out.</li> </ul>
The main content of a document. <!-- header & nav here --> <div role="main"> <p>Lorem ipsum...</p> </div> <!-- footer here -->

Page 219 of 861