Links have a discernible name

Links have unique, descriptive text so users know where they go.

On this page

Impact

ScanGov impact ratings

About

Link text (and alternate text for images, when used as links) that is discernible, unique, and focusable improves the navigation experience for screen reader users. [Learn how to make links accessible](https://dequeuniversity.com/rules/axe/4.10/link-name).

Risks

Screen reader users cannot identify or interact with elements.

Why it's important

Gives screen reader users meaningful descriptions of interactive elements so they can understand and use them.

User stories

As a screen reader user, I want all interactive elements to have clear, descriptive names so that I know what they do.

Code

Failing pattern:

<!-- Fail: link with only an icon, no accessible text -->
<a href="/report.pdf"><img src="pdf-icon.png"></a>

Passing pattern:

<!-- Pass: alt text on the image provides the link name -->
<a href="/report.pdf"><img src="pdf-icon.png" alt="Download annual report (PDF)"></a>

Error

ScanGov messaging when a site fails a standard:

Failed: Links have a discernible name

Examples

Failing pattern:

<a href="/docs/report.pdf">Click here</a>

Passing pattern:

<a href="/docs/report.pdf">Download the 2024 Annual Report (PDF, 2 MB)</a>

Guidance

Indicators

On this page