Can a link/anchor element still be accessible without an href?
Links that are built with anchor elements (
<a>) are not accessible without an
href value. The
href value determines what page or content a user will be directed to once the link is activated. If the
href value is left blank, then the link may appear to be broken to users and may also cause confusing screen reader announcements.
If you are using a link/anchor element and do not have an applicable
href value, then a different native html element, such as a
<button>, may be more appropriate.
For more details and examples about accessible links, explore the Landmarks, Links, and Headings course in the Accessible Web Academy.
Free Tools to Continue Learning
Accessible Web RAMP
Monitor your website and manage your progress towards WCAG conformance.
Accessible Web Academy
Career specific courses to help power up your accessibility knowledge.