Confirmed users
293
edits
mNo edit summary |
|||
| Line 7: | Line 7: | ||
The WAI-ARIA specification allows web authors to specify the '''functionality''' of parts of a page in a way that does not affect the visual properties of the page or its elements. Accessibility tools, such as screenreaders, can make use of this information in order to provide better access to users. For example, if a <span> is really a button, the author can use <tt>role="button"</tt> to indicate that this particular span is actually meant to be a button, and a screenreader will then present this element as a button rather than a piece of text on the page (as it would normally do for a span). This enables the user to interact with it in a way they would normally interact with a button, just as a sighted user would normally be able to do (assuming the span in question looked like a button in some obvious way). | The WAI-ARIA specification allows web authors to specify the '''functionality''' of parts of a page in a way that does not affect the visual properties of the page or its elements. Accessibility tools, such as screenreaders, can make use of this information in order to provide better access to users. For example, if a <span> is really a button, the author can use <tt>role="button"</tt> to indicate that this particular span is actually meant to be a button, and a screenreader will then present this element as a button rather than a piece of text on the page (as it would normally do for a span). This enables the user to interact with it in a way they would normally interact with a button, just as a sighted user would normally be able to do (assuming the span in question looked like a button in some obvious way). | ||
By specifying various ARIA attributes, we can thus instruct the Assistive Technology software on what we mean. I will introduce each of the relevant | By specifying various ARIA attributes, we can thus instruct the Assistive Technology software on what we mean. I will introduce each of the attributes relevant for chat logs in the following subsections. | ||
=== <tt>role="log"</tt> === | === <tt>role="log"</tt> === | ||