Skip to main content

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

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

How to test it yourself

What WCAG.win checks

WCAG.win checks part of this criterion automatically. The rest still needs a person.

W3C documentation: Understanding Success Criterion 2.5.3: Label in Name

Check a web page for free