Link Accessibility Checker
Paste your HTML to check links for accessibility issues including generic text, empty links, missing href attributes, and new-tab links without warnings.
We fetch the page client-side. Some sites may block external access — use "Paste HTML" as a fallback.
How to Use Link Accessibility Checker
- 1
Paste your HTML
Copy the HTML source code containing links you want to check and paste it into the input area.
- 2
Click Check Links
Press the button to scan all <a> tags and evaluate their accessibility.
- 3
Review link issues
See each link's accessible name, href, and any errors or warnings flagged by the checker.
- 4
Improve link text
Replace generic text like 'click here' with descriptive link text and add warnings for new-tab links.
Frequently Asked Questions
Related Tools
Creating Accessible Links: A Complete Guide
Links are the connective tissue of the web. They enable navigation between pages, connect related content, and provide pathways to actions and resources. Because links are so fundamental, their accessibility has an outsized impact on the overall usability of any website. Poorly implemented links create barriers for screen reader users, keyboard navigators, and anyone who relies on assistive technology to browse the web.
What Makes a Link Accessible
An accessible link communicates its purpose clearly, works with all input methods, and behaves predictably. WCAG 2.2 defines several success criteria related to links. SC 2.4.4 (Link Purpose in Context) at Level A requires that the purpose of each link can be determined from the link text alone or from the text combined with its programmatically determinable context. SC 2.4.9 (Link Purpose - Link Only) at Level AAA requires that every link's purpose be identifiable from the link text alone, without relying on surrounding context. SC 1.3.1 (Info and Relationships) requires that the link's role and state be programmatically determinable.
The Problem with Generic Link Text
Screen readers provide a feature that lists all links on a page, allowing users to quickly scan available navigation options. When this list contains multiple entries saying "click here," "read more," or "learn more," it becomes useless for navigation. Each link should make sense in isolation. Instead of "To learn about accessibility, click here," write "Learn about web accessibility." The link text should describe where the link goes, not instruct the user to click.
This problem extends beyond screen readers. Users who scan pages visually tend to focus on links, reading them as navigation landmarks. Descriptive link text benefits everyone by clearly indicating what content or action is available at the link destination.
New Tab Links and Context Changes
Opening a link in a new browser tab or window is a context change that can disorient users, particularly those using screen readers or with cognitive disabilities. The browser's back button stops working as expected, and keyboard focus may shift unpredictably. When you must open links in new tabs (for external resources, documents, or to preserve form state), always provide a warning. This can be done through an aria-label that includes "opens in new tab," visually hidden text with the sr-only class, a visual icon with appropriate alt text, or the link's title attribute.
Empty Links and Missing Href
An empty link is one with no discernible text for assistive technology. This happens when a link wraps an image without alt text, contains only whitespace or decorative elements, or has been stripped of its content through JavaScript. Screen readers will announce these as "link" without any indication of where they lead. Similarly, links without an href attribute are not focusable by keyboard, cannot be activated by pressing Enter, and are not announced as links by screen readers, making them completely inaccessible.
Links vs. Buttons: Choosing the Right Element
A common accessibility mistake is using links for actions and buttons for navigation. Links and buttons have different keyboard behaviors and are announced differently by screen readers. Links are activated with the Enter key and navigate to URLs. Buttons are activated with both Enter and Space and trigger actions. When a clickable element opens a modal, submits data, toggles a menu, or performs any action that does not navigate to a new URL, it should be a <button> element. Using the correct semantic element ensures proper behavior for keyboard and assistive technology users without requiring additional ARIA attributes.
Best Practices Summary
Write descriptive link text that makes sense out of context. Ensure every link has an accessible name through visible text, aria-label, or an image with alt text. Warn users when links open in new tabs. Use links for navigation and buttons for actions. Avoid javascript: URLs and empty href values. Test your links with this tool regularly to catch issues before they affect your users.