Description
This rule determines if a given anchor <a>
element has defined attribute href
.
Purpose
Attribute href
defines an URL that the hyperlink points to. When it’s not defined then the user cannot navigate to this element using the keyboard.
How to fix it
- Always define an attribute
href
for<a>
element.
Standard
Accessibility, Best Practice