# Link Checker reference: Ambiguous Link Patterns Part of the `link-checker` skill. Read this only when the task reaches these sections. ## Ambiguous Link Patterns ### Flagged as Violations These link texts are ambiguous on their own. They fail 2.4.9 (AAA) unless the accessible name (aria-label, aria-labelledby, or visually hidden text) supplies the purpose, or the link is ambiguous to users in general. For 2.4.4 (A) they pass when the purpose is clear from the accessible name (techniques ARIA7, ARIA8) or from programmatically determined context: the same sentence, paragraph, list item or table cell, or an associated table header cell. A preceding heading alone is not enough (technique H80 is advisory). Rewrite them by default: | Ambiguous Text | Problem | Better Alternative | |----------------|---------|-------------------| | "Click here" | Action-focused, not purpose-focused | "Download the annual report" | | "Here" | No purpose at all | "View our pricing plans" | | "Read more" | More about what? | "Read more about our accessibility policy" | | "Learn more" | Learn more about what? | "Learn more about WCAG 2.2 changes" | | "More" | More what? | "More articles about web accessibility" | | "More info" | Info about what? | "More info about screen reader support" | | "Link" | Describes the element, not the destination | "Annual accessibility audit results" | | "Details" | Details about what? | "Details about the January release" | | "Info" | Info about what? | "Information about our return policy" | | "Go" | Go where? | "Go to account settings" | | "See more" | See more of what? | "See more customer reviews" | | "Continue" | Continue to what? | "Continue to payment" | | "Start" | Start what? | "Start your free trial" | | "Submit" | For links (not form buttons) | "Submit your application" | | "Download" | Download what? | "Download the 2025 annual report (PDF, 2.4 MB)" | | "View" | View what? | "View your order history" | | "Open" | Open what? | "Open the accessibility settings" | | URL as text | URLs are not descriptive | "Visit the W3C accessibility guidelines" | ### Flagged as Warnings These patterns are context-dependent and may or may not be accessible: - **"Read more" inside a card/article** -- Acceptable ONLY if `aria-label` or `aria-labelledby` provides the full context - **"View details" in a table row** -- Acceptable ONLY if `aria-label` includes the row context (e.g., `aria-label="View details for Order #1234"`) - **Icon-only links** -- Acceptable ONLY if `aria-label` is present and descriptive ## Detection Rules ### Rule 1: Exact Match on Known Ambiguous Strings Flag any link whose **visible text content** (trimmed, case-insensitive) exactly matches one of the ambiguous patterns listed above. ```html Click here Read more View our pricing plans ``` ### Rule 2: Starts With Ambiguous Prefix Flag any link whose text starts with an ambiguous prefix followed by minimal content. ```html Click here to download Download the 2025 annual report ``` ### Rule 3: Repeated Identical Link Text Flag when multiple links on the same page have identical text but point to different destinations. ```html Read more Read more Read more Read more about accessible forms Read more about ARIA best practices Read more about focus management Read more Read more Read more ``` ### Rule 4: URL as Link Text Flag links where the visible text is a URL. ```html https://www.w3.org/TR/WCAG22/ WCAG 2.2 specification ``` ### Rule 5: Adjacent Duplicate Links Flag when an image and a text link sit next to each other and go to the same destination. These should be combined into a single link. ```html Widget Pro Widget Pro Widget Pro ``` ### Rule 6: Links Opening in New Windows Flag links that open in a new window/tab without warning the user. ```html Example Site Example Site (opens in new tab) Example Site (opens in new tab) ``` ### Rule 7: Links to Non-HTML Resources Flag links to PDFs, Word docs, spreadsheets, or other non-HTML resources that do not indicate the file type. ```html Annual Report Annual Report 2025 (PDF, 2.4 MB) ``` ## Fixing Ambiguous Links ### Strategy 1: Rewrite the Link Text The simplest and best approach. Make the link text describe the destination or action. ```html

To learn about our services, click here.

Learn about our services.

``` ### Strategy 2: Use aria-label for Context When you cannot change the visible text (e.g., design constraints), use `aria-label` to provide the full context to screen readers. ```html

Accessible Forms Guide

Learn how to build forms that work for everyone...

Read more
``` **Important:** `aria-label` completely replaces the visible text for screen readers. Ensure the `aria-label` includes the visible text to maintain consistency (WCAG 2.5.3 Label in Name). ### Strategy 3: Use aria-labelledby for Composed Labels When the link purpose comes from a combination of elements: ```html

Accessible Forms Guide

Learn how to build forms that work for everyone...

Read more
``` ### Strategy 4: Use Visually Hidden Text Add context that is hidden visually but read by screen readers: ```html Read more about accessible forms ``` CSS for visually hidden: ```css .visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; } ```