This Wiki page is edited by participants of the WCAG Working Group. It does not necessarily represent consensus and it may have incorrect information or information that is not supported by other Working Group participants, WAI, or W3C. It may also have some very useful information.

Difference between revisions of "Using aria-label to provide labels for objects"

Jump to: navigation, search
(Related Techniques)
Line 67: Line 67:
===Related Techniques===
===Related Techniques===
*[ ARIA-XX: Using aria-labelledby to provide labels for objects.]
*[ ARIA-XX: Using aria-labelledby to provide labels for objects.]
*[ ARIA-XX: Using aria-label to provide labels for objects.]
*[ H44: Using label elements to associate text labels with form controls]
*[ G92: Providing long description for non-text content that serves the same purpose and presents the same information]
*[ H45: Using longdesc]

Revision as of 16:05, 23 July 2013



surveyed by TF

  • 1 Nov 2012: Ready for WG Review

User Agent Notes [To be published separately]

  • Jaws V.11 and greater has complete support.
  • ChromeVox V.1 and greater has complete support
  • VoiceOver V.3 and greater supports ???
  • NVDA 2 supports Aria Describedby ???
  • Window Eyes as of V.7 ???.


As of this writing this technique applies to HTML technologies.

This technique relates to:


The purpose of this technique is to provide a label for objects that can be read by assistive technology. The aria-label attribute provides the text label for an object, such as a button. When a screen reader encounters the object, the aria-label text is read so that the user will know what it is.


Example 1

The following example shows how a aria-label could be used to distinguish two navigation landmarks in a HTML4 and XHTML 1.0 document, where there are more than two of the same type of landmark on the same page, and there is no existing text on the page that can be referenced as the label.

<div role="navigation" aria-label="Primary">
<ul><li>...a list of links here ...</li></ul> </div>
<div role="navigation" aria-label="Secondary">
<ul><li>...a list of links here ...</li> </ul></div>

Example 2

The following example shows how a generic "region" landmark might be added to a weather portlet. There is no existing text on the page that can be referenced as the label, so it is labelled with aria-label.

<div role="region" aria-label="weather portlet"> 

Example 3

Below is an example of a math ML function, using the math role, appropriate label, and MathML rendering:

<div role="math" aria-label="6 divided by 4 equals 1.5">
  <math xmlns="">


WAI ARIA 1.0 Authoring Practices

Related Techniques



For each element where a aria-label role attribute is present.

  1. Examine whether the text description accurately labels the object or provides a description of its purpose or provides equivalent information.

Expected Results

Test #1 is true.