This rule determines if a given anchor element
<a> have defined following unclear url:
The incorrect URL defined in an anchor
href attribute should not be used and may be misinterpreted by screen readers or the action may be unexpected.
How to fix it
- Make sure the attribute
hrefvalue always is a valid URL.
- Link with the attribute
href="#"should be disabled. The use of the
disabledattribute is not allowed. It is still possible to disable a link by following 3 steps:
hrefmust be removed so that it can no longer receive the focus.
- Add the
role="link"so the element will always be considered as a link by screen readers.
- Add the attribute
aria-disabled="true"so the element is indicated as being disabled.
Accessibility, SiteLint, Best Practice