Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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: