Visible name and programatic name are the same.
Speech-input users can directly activate controls on a page with fewer surprising changes of focus.
Text-to-speech users will have a better experience because the labels that they hear match the visible text labels that they see on the screen.
Clearly wrong
Your shopping cart
Item | Color | Price | Actions |
---|---|---|---|
Brogue | Purple | $112 | |
Flip flops | Green | $1 | |
Cowboy boots | Silver | $20 |
Traditionally we have relied on:
<button type="button" class="btn btn-default">Edit <span class="sr-only">Brogue</span> </button>
and
<button type="button" ctlass="btn btn-default" aria-label="Edit Brogue">Edit </button>
now that is out