Goal
Ensure that links work for users of all types of technology including assistive technology and keyboard navigation.
Why this matters
Read Why does it matter if our HTML is semantic?.
How to implement
Follow the instructions in <a>: The Anchor Element on MDN’s website.
How to test
Manual testing
Right-click the link and inspect the element to ensure that it is properly encoded in an <a>
tag with an href
attribute.
Automated testing
HTML validators should report back an error if the <a>
element is parsing incorrectly or missing key attributes. Note that validators cannot determine if an <a>
element is linking to the correct place.