Adding information to links test
Developers may wish to add additional context to a link for screen reader users.
- Option 1: Link title attribute
- Option 2: Link aria-label attribute
- Option 3: Link aria-labelledby attribute
- Option 4: Link aria-describedby attribute
- Option 5: Link hidden info
Option 1: Link title attribute
Test
- Should read link content and then title content - "Buy a book from the Tolkein range".
Example
Code sample
OS | Browser | NVDA 2014.4 | JAWS 16 | VoiceOver |
---|---|---|---|---|
Windows 7 | IE 11 | FAIL - no title | PASS | |
Windows 7 | IE 8 | FAIL - no title | PASS | |
Windows 7 | Chrome 39 | PASS | PASS | |
Windows 7 | Firefox 34 | PASS | PASS | |
OSX 10.9 | Chrome 39 | FAIL - no title | ||
OSX 10.9 | Firefox 34 | FAIL - no title | ||
OSX 10.9 | Safari 7 | PASS |
Option 2: Link aria-label attribute
Test
- Should read aria-label content only - "Purchase apples while they are fresh".
Example
Code sample
OS | Browser | NVDA 2014.4 | JAWS 16 | VoiceOver |
---|---|---|---|---|
Windows 7 | IE 11 | PASS | PASS | |
Windows 7 | IE 8 | PASS | PASS | |
Windows 7 | Chrome 39 | FAIL - does not read aria | PASS | |
Windows 7 | Firefox 34 | PASS | PASS | |
OSX 10.9 | Chrome 39 | PASS | ||
OSX 10.9 | Firefox 34 | PASS | ||
OSX 10.9 | Safari 7 | PASS |
Option 3: Link aria-labelledby attribute
Test
- Should read link content followed by aria-labelledby content - "Color blue is a calming color".
Example
Color blue
is a calming color
Code sample
OS | Browser | NVDA 2014.4 | JAWS 16 | VoiceOver |
---|---|---|---|---|
Windows 7 | IE 11 | PASS | FAIL - aria-labelledby only | |
Windows 7 | IE 8 | PASS | FAIL - aria-labelledby only | |
Windows 7 | Chrome 39 | FAIL - no aria-label | FAIL - aria-labelledby only | |
Windows 7 | Firefox 34 | FAIL - aria-labelledby only | FAIL - aria-labelledby only | |
OSX 10.9 | Chrome 39 | PASS | ||
OSX 10.9 | Firefox 34 | PASS | ||
OSX 10.9 | Safari 7 | PASS |
Option 4: Link aria-describedby attribute
Test
- Should read link content followed by aria-describedby content - "Close and return to banking details".
Example
Close
and return to banking details
Code sample
OS | Browser | NVDA 2014.4 | JAWS 16 | VoiceOver |
---|---|---|---|---|
Windows 7 | IE 11 | PASS | PASS | |
Windows 7 | IE 8 | PASS | PASS | |
Windows 7 | Chrome 39 | PASS | PASS | |
Windows 7 | Firefox 34 | PASS | PASS | |
OSX 10.9 | Chrome 39 | FAIL - no describedby | ||
OSX 10.9 | Firefox 34 | PASS | ||
OSX 10.9 | Safari 7 | PASS |
Option 5: Link hidden info
Test
- Should read link content including the content - "See the dog run after a ball".
Example
Code sample
OS | Browser | NVDA 2014.4 | JAWS 16 | VoiceOver |
---|---|---|---|---|
Windows 7 | IE 11 | PASS | PASS | |
Windows 7 | IE 8 | PASS | PASS | |
Windows 7 | Chrome 39 | PASS | PASS | |
Windows 7 | Firefox 34 | PASS | PASS | |
OSX 10.9 | Chrome 39 | PASS | ||
OSX 10.9 | Firefox 34 | PASS | ||
OSX 10.9 | Safari 7 | PASS |