Level ASince WCAG 2.1
2.5.3 Label in Name
Guideline 2.5: Input Modalities – Using touch, pointers and motion is simple and forgiving.
What does the rule require?
The visible text of a control is also part of its name in code. Otherwise voice control fails: “Click Send” does not find the button.
How to get it right
If the button says “Send”, the aria-label must not be “Submit form”. Better: no aria-label at all, or “Send – contact form”.
Who benefits most?
- People who use voice control
- Blind people
Official wording
This page explains the rule in simple words. Only the original W3C text is normative.
- “Understanding Label in Name” at W3C (external site)
- Techniques in the WCAG Quick Reference (external site)