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.
In more detail
AccName checks aria-labelledby first (joining the text of every element it points to), then aria-label, then native sources such as a label or text content, then title. Elements hidden with aria-hidden or inert are skipped as sources unless referenced directly.
Related terms
- accessible name — The text assistive technology uses to identify a control, such as "Delete account" for a button.
- aria-labelledby — An ARIA attribute that names an element using the text of one or more other elements, referenced by their id.
- aria-label — An ARIA attribute that gives an element its accessible name directly as a text string.
Taught in
- WAI-ARIA Semantics: Roles, States & Accessible Name Computation — Design Systems & Component Engineering