Back to home

Adding information to links test

Developers may wish to add additional context to a link for screen reader users.

Option 1: Link title attribute

Test

Example

Buy a book

Code sample

<a href="#" title="from the Tolkein range">
	Buy a book
</a>
Support chart
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

Example

Buy apples

Code sample

<a href="#" aria-label="Purchase apples while they are fresh">
	Buy apples
</a>
Support chart
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

Example

Color blue

Code sample

<a href="#" aria-labelledby="info1">
	Color blue
</a>
<p id="info1" class="hidden">
	is a calming color
</p>
Support chart
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

Example

Close

Code sample

<a href="#" aria-describedby="info1">
	Close
</a>
<p id="info1" class="hidden">
	 and return to banking details
</p>
Support chart
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

Example

See the dog

Code sample


<a href="#">
	See the dog 
	<span class="hidden">run after a ball</span>
</a>
Support chart
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

Bottom of page - Back to home