Skip to content
easeweb
Search topics

Links like "click here" that need the words around them

A shop's care guides each end in a "click here" link, or in the same "Care guide" link, so a link says which guide it opens only with the words before it.

WCAG 2.2
SC 2.4.9AAA
Required by
Not required by Section 508 or EN 301 549
Broken <a href="/guides/enamel-care.pdf">click here</a>
The accessibility problem illustrated: No vision:Which one is the travel mug guide?
01

The problem

Screen reader users choosing from a list of links hear "click here" three times, with nothing to say which care guide each one opens.

02

Try it

Find the travel mug guide in the screen reader’s list of links under the page.

  • Broken 1: every line ends in “click here”. Which entry in the list opens the travel mug guide?

  • Broken 2: the links now say “Care guide”. Read the list again.

  • Apply a fix. Read the list again, and with the hidden words, compare it with the words the page shows.

Broken Can you fix this?

Care guides

  • Enamel mugs: for the care guide, click here (PDF, 120 KB)
  • Stoneware: for the care guide, click here (PDF, 95 KB)
  • Travel mugs: for the care guide, click here (PDF, 140 KB)

Screen reader says:

Its list of links:

  1. click here
  2. click here
  3. click here

A recreated demo. The broken version is intentionally inaccessible.

03

The fix

Put the words that say where it goes inside the link.

Before

Click here on every line

<h2>Care guides</h2><ul class="guides">  <li>    Enamel mugs: for the care guide, <a href="/guides/enamel-care.pdf">click here</a> (PDF, 120 KB)  </li>  <li>    Stoneware: for the care guide, <a href="/guides/stoneware-care.pdf">click here</a> (PDF, 95 KB)  </li>  <li>    Travel mugs: for the care guide, <a href="/guides/travel-care.pdf">click here</a> (PDF, 140 KB)  </li></ul>
What is wrong3 points
  • Each link's text is "click here", which says nothing about where it goes.
  • Which guide it opens is only in the words before the link.
  • The list of links reads "click here" three times.
After

The guide's name as the link

<h2>Care guides</h2><ul class="guides">  <li>    <a href="/guides/enamel-care.pdf">Enamel mug care guide</a> (PDF, 120 KB)  </li>  <li>    <a href="/guides/stoneware-care.pdf">Stoneware care guide</a> (PDF, 95 KB)  </li>  <li>    <a href="/guides/travel-care.pdf">Travel mug care guide</a> (PDF, 140 KB)  </li></ul>
How it is fixed2 steps
  1. Write each guide's whole name as the link's text: "Enamel mug care guide". The link now says which guide it opens on its own, in the list of links, on Tab and to anyone who skims.
  2. Take out "click here", and the words before the link that it now holds, so the line doesn't say them twice.

This fixes both Befores. It passes 2.4.9 (technique G91), and 2.4.4 with it. Every link's text is different, so axe's rule has nothing to report.

Easily confused
04

Verify the fix

4 checks, no mouse.

Test with: Screen reader, Speech input, Keyboard

0 of 4 checked

Record the OS, browser and assistive-technology versions, the build, the date, and the actual result of each step. Repeat after editors publish new help pages.

Limits

This is a starting pattern, not a guarantee for every page. Paths and class names in the snippets are placeholders. A heading above a link is weaker context than the line it sits in, and W3C lists it only as an advisory technique for 2.4.4, so a link that leans on a heading may fail Level A as well as AAA. A row of cards that each end in the same "Read more" is covered in "Read more" links that all say the same thing, and a link with no name at all in banner and image links with no name. Test the complete page with the assistive technology your visitors use.

This is a recreated teaching example, not a finding about a named client. The code is a starting pattern: test it in your own product. No completed assistive-technology test is claimed here.

EaseWeb service

Fixed it? Keep it from coming back.

I turn guides like this one into rules your coding agents follow and checks your CI runs. Then I retest by hand with a keyboard and screen readers, periodically.

See the service