Buttons that customers can say out loud
By the end of this step: you will be able to check that customers who control a website by speaking can press your buttons and links using the words they see.
The short version
- Some customers use their voice, not a mouse, to press buttons.
- They say the words they can see on the button.
- The button must have those same words in its hidden name.
- You can test this yourself by saying "Click" and the button's words.
Who talks to a website?
Some people can't easily use a mouse, a keyboard or a touchscreen. They use voice control instead. That means software on their computer or phone that does what they say. They might say "Click Book now" and the button is pressed.
W3C is the group that writes the web's standards. It says people who operate with voice interaction use the visible labels in their commands.[1] So the words on your button are the words they will speak.
Every button has two names
A button has the words you see on it. That is its visible label.
It also has a hidden name in the page's code. This is the accessible name. Screen readers and voice control software read it. Most of the time it is the same as the visible label, and nobody has to think about it.
The trouble starts when a web designer gives a button a different hidden name. The page might show "Book now" while the code says "Reserve". The customer says "Click Book now". Nothing happens.
W3C describes this problem. Speech users can navigate by speaking the visible text labels of menus, links and buttons.[1] When the hidden name is different, the label they speak doesn't work. W3C also warns that the odd name may act as a hidden command that is accidentally activated by speech users.[1]
The rule in plain words
WCAG 2.5.3 Label in Name is Level A. It asks that the name contains the text that is presented visually.[1]
The goal is simple. The visual label for controls is a trigger for speech activation.[1]
The name can be longer than the label. That is fine. W3C gives an example: the name "Search for a value" begins with the text of the visible label, "Search".[1] W3C also says a best practice is to put the label's text at the start of the name.[1]
Where it can go wrong on a small business site
You don't have to read code to spot the likely places.
- A button that says "Book now" but is named something else, like "Reserve".
- A link that says "Shop" but is named "Browse products".
- A custom button from a plugin or theme, where the designer chose their own hidden names.
One more point. The rule only applies when there is visible text. Where a visible text label does not exist for a component, W3C says this success criterion does not apply to that component.[1] A button that is only an icon is a different job, and writing alt text helps with it.
Check it on your own site
You don't need to buy anything. Your computer and phone may already have voice control built in. Look in the accessibility settings. Step 9 has more ways to test.
Try it on your site
- Turn on the voice control in your computer or phone's accessibility settings.
- Open your busiest page.
- Pick three buttons or links. For example: your booking button, your contact link and your search button.
- Say "Click" and then the exact words you see on each one.
- Did each one work? If so, it passes.
- If one didn't, write down the page and the words on it. Send them to your web designer or your website builder's help team. Ask: "Does the accessible name of this button contain its visible label, as WCAG 2.5.3 asks?"
Sources
- Understanding Success Criterion 2.5.3: Label in Name, W3C Web Accessibility Initiative (accessed 2026-11-16)