aria-label attribute | ariaLabel property

Defines a string value that labels the current element. See also aria-labelledby.

Syntax


<element aria-label="..." ... />

Property values

Type: DOMString

Standards information

Remarks

Used in Roles
No role required.

 

The aria-label attribute can be used when:

  • the name of an element cannot be determined programmatically from the content of the element
  • providing a visible label and/or tooltip is not the desired user experience

However, if the label text is visible on screen, you should use aria-labelledby instead of aria-label.

See also

Accessible Rich Internet Applications (ARIA)
aria-labelledby

 

 

Show:
© 2014 Microsoft