Skip to main content
Perceivly: Perceivly home

Accessible name

Also called: Accessible name computation, AccName

The name of a user interface element as exposed to assistive technology, such as the text a screen reader reads for a button.

Definition

WAI-ARIA defines it this way: the accessible name is the name of a user interface element. Each platform accessibility API provides the accessible name property. Its value may come from something visible, such as the text on a button, or something invisible, such as the text alternative of an icon.

Browsers compute it with the W3C's Accessible Name and Description Computation. In order of precedence, the main sources are aria-labelledby, aria-label, the native label (a <label> for a field, alt for an image), the element's own text content, and last the title attribute.

Why it matters

Screen reader users hear the accessible name, and voice control users speak it ("click Search"). A control with no name is announced only as "button" or "edit text", which fails 4.1.2 Name, Role, Value. A name that does not contain the visible label fails 2.5.3 Label in Name, so a voice command using the visible word does nothing.

How to test or meet it

  • Give icon-only buttons a name, for example aria-label="Search" or visually hidden text inside the button.
  • Connect every field to its visible <label> with for and id.
  • Start the accessible name with the visible label text when you add extra words.

Automated tools catch missing names on buttons, links, images and fields. They cannot judge whether a name is meaningful. Check names in the browser's accessibility inspector, or listen with a screen reader.

WCAG criteria

Tools and guides

Sources

  1. WAI-ARIA 1.2: accessible name (W3C)
  2. Accessible Name and Description Computation 1.2 (W3C)
  3. WCAG 2.2 glossary: name (W3C)

By the Perceivly team · Published . This explains a term; it is not legal advice.

Check a page for free

The free accessibility checker tests one page against WCAG 2.2 A and AA in about 10 seconds and lists what still needs a manual review. No sign-up.

All glossary terms