Go to overview: WAI-ARIA techniques with code examples
aria-describedby
to add a description to a text input fieldDetlev Fischer, (detlev [dot] fischer [ at ] testkreis [dot] de)
Last update: 25 April 2014
The follwing example uses the aria-describedby
attribute on an input element to reference the descriptive paragraph ("Please provide...") qualifying the input needed. It also uses the label
element to provide a visible label (example adapted from Steve Faulkner's HTML5 Accessibility Chops: form control labeling).
In all the tests documented here, there was no difference in output when the descriptive paragraph referenced by aria-describedby
was given a tabindex
attribute (tabindex="-1"
) (see variant of this page with tabindex=-1
on the element referenced). However, according to Steve Faulkner, tabindex="-1"
should be provided on non-interactive elements referenced, to ensure support for some browser / screen reader combinations such as IE9 and JAWS 11 (not tested here).
Other content
Please provide both first name and surname here.
aria-describedby
to add a description to a text input fieldiOS 7.1 (on iPhone 5c), VoiceOver | not supported |
|
---|---|---|
Android 4.4.2 (on Nexus 4), Firefox 28.0.1, TalkBack | supported |
|
Android 4.2, Firefox 18, TalkBack (German version) | Not supported |
|
Win 7, FF 15, JAWS 13 | Partial support (buggy) |
|
Win 7, IE9, JAWS 13 | supported |
|
Win 7, FF 13, NVDA 2012.2.1 | supported |
|
Win 7, IE9, NVDA 2012.2.1 | supported |
|
Win XP, FF 15, NVDA 2011.13 | supported |
|
Win XP, IE8, NVDA 2011.13 | supported |
|
Win XP, IE8, SaToGo | supported |
|
Win XP, IE7, JAWS 8 | not supported |
In both tabbing and normal reading: Ignores |
Win XP, FF 3.5.9, JAWS 8 | not supported |
In both tabbing and normal reading: Ignores |
Win XP, IE7, NVDA 11 | supported |
Tabbbing through: Supports |
Win XP, FF 3.5.9, NVDA 11 | supported |
Tabbing through: Supports |
Mac OS 10.5.8, VoiceOver | ? | *********Still to be checked. |