Search Menu
Language Menu
Mobile Menu
OGCIO

8.29 WCAG 2.1 Success Criterion 2.5.3 – Label in Name

All visible text labels must match their programmatic names to facilitate users using speech-to-text technologies to interact with the content based on an intuitive visual label.

Before Rectification  

A webpage sample with a selection of products for user to purchase.  The button labels do not match with their accessible names.

When a speech-input user speaks a command “Click Buy”, the speech input does not activate the button control because the programmatic name that is enabled as a speech-input command does not match with the visible text label.

After Rectification  

A webpage sample with a selection of products for user to purchase.  The button labels all match with their accessible names.

The programmatic names are exactly the same as the visual text labels of the buttons, so that the speech-input user can activate the control by speaking the visual text label.

WCAG 2.1 Reference:

https://www.w3.org/WAI/WCAG21/Understanding/label-in-name.html