2.5.3 Label in Name
Level A Since WCAG 2.1 How it is checked: AI pre-review + person
In plain language
The name given to screen readers (aria-label) must contain the visible text of the button or label, so voice-control users can say the right name.
Who is affected
- People with motor disabilities using only a keyboard
- Blind people using screen readers
Examples
Fails
<button aria-label="Send">Submit application</button> <!-- saying "click Submit application" will not work -->Passes
<button>Submit application</button> or aria-label="Submit application online"How to fix
- Avoid aria-label on elements that already have visible text.
- If you do use it: start with the exact visible text.
How to test it yourself
- Compare the visible text with the accessible name (browser dev tools, Accessibility panel).
What WCAG.win checks
WCAG.win checks part of this criterion automatically. The rest still needs a person.
- Automated checker – rule
label-content-name-mismatch: Elements must have their visible text as part of their accessible name
W3C documentation: Understanding Success Criterion 2.5.3: Label in Name