<input>
where title
should be accessible name
← 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 <input>
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
<label for="fish">Fish</label>
<input
type="text"
id="fish"
title="rabbit"
placeholder="fox"
>
Assistive technologies
VoiceOver
- Chrome: Fish. Fox. Edit text. Rabbit.
- Firefox: Fish. Edit text. Rabbit.
- Safari: Fish. Fox. Edit text. Rabbit.
NVDA
- Chrome: Fish. Edit. Rabbit. Fox. Blank.
- Firefox: Fish. Edit. Has autcomplete. Rabbit. Fox. Blank.
- Edge: Fish. Edit. Rabbit. Fox. Blank.
JAWS
- Chrome: Fish. Edit. Fox. Rabbit. Type in text.
- Firefox: Fish. Edit. Fox. Rabbit. Type in text.
- Edge: Fish. Edit. Rabbit. Type in text.
← Return to main list