2.5.3 Label in Name
- Level A
- In WCAG 2.1, 2.2 (new in 2.1)
- 2. Operable › 2.5 Input Modalities
What WCAG says
For user interface components with labels that include text or images of text, the name contains the text that is presented visually.
Quoted from W3C. More in W3C’s Understanding 2.5.3.
How to check it yourself
- For buttons and links with visible text, does the name a screen reader hears start with, or include, that visible text?
- Speech-input users say what they see (“click Search”).
Can an automated test check it?
Partly. Our scanner runs this axe-core rule for 2.5.3 whenever your chosen WCAG version and level include it. It can prove some failures, but a pass doesn’t prove the page meets the criterion: a person still needs to do the checks above.
- Elements must have their visible text as part of their accessible name
label-content-name-mismatch
Scan a web page to see which criteria it fails, or read how the checker works.