<button>
where title
should be accessible description
← Return to main list
The purpose this test is to show the cascade order of how accessible descriptions are applied in the accessibility tree for the <button>
element. The priority order from highest to lowest is:
- If present, use
aria-describedby
value.
- Otherwise, if present, use
title
value (as per the "Rabbit" example below).
- If none of the above are provided, there is no accessible description.
This example should not be considered proper practice, and is for testing purposes only.
Example
Code
<button title="rabbit">Fish</button>
Assistive technologies
VoiceOver
- Chrome: Fish. Button. Rabbit.
- Firefox: Fish. Button. Rabbit.
- Safari: Fish. Button. Rabbit.
NVDA
- Chrome: Fish. Button. Rabbit.
- Firefox: Fish. Button. Rabbit.
- Edge: Fish. Button. Rabbit.
JAWS
- Chrome: Fish. Button. Rabbit.
- Firefox: Fish. Button. Rabbit.
- Edge: Fish. Button. Rabbit.
← Return to main list