Register for our upcoming webinars and office hours!View upcoming events
Overwhelmed by WCAG success criteria?Accessible Web RAMP is the easiest way to discover, understand, and resolve web accessibility issuesthat matter most to your users.Try for Free
Question
Can a link built with an anchor element still be accessible without an href?
Answer
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.
Newest Questions
When you manually test on screen readers, do you test all the different versions, or would one work the same?
- Assistive Technology
- screen readers