accessible name
The text assistive technology uses to identify a control, such as "Delete account" for a button.
In more detail
It comes from, in priority order, aria-labelledby, then aria-label, then native labelling such as a <label> or the element's text content, then a title. Every interactive control needs a non-empty one; an icon-only button without aria-label is announced just as "button".
Related terms
- Accessible Name and Description Computation — The W3C algorithm browsers follow to work out an element's accessible name and description from its attributes and content.
- aria-label — An ARIA attribute that gives an element its accessible name directly as a text string.
- aria-labelledby — An ARIA attribute that names an element using the text of one or more other elements, referenced by their id.
- label element — The HTML element that names a form control; its for attribute (htmlFor in React) holds the control's id.
Taught in
- Modal Dialogs & Alert Dialogs: Accessible Overlay Patterns — Design Systems & Component Engineering
- WAI-ARIA Semantics: Roles, States & Accessible Name Computation — Design Systems & Component Engineering
- Automated Accessibility Testing: axe-core & Testing Library — Design Systems & Component Engineering