Put each product's photo and name inside one link instead of two. Give the photo an empty description, since the name already says what it is, then tab through the list to confirm one stop per product.

Every item, twice

A gift shop's online catalogue lists its products in a grid: a photo, a name and a price for each candle, card and mug. Click either the photo or the name, and the product page opens.

A customer who shops by keyboard presses Tab to move through the list. The highlight lands on the first photo, then the first name, then the second photo: two stops per product.

A screen reader user hears it worse: a link called something like DSC 0412 dot jpg, then a link called Beeswax Candle, then the next file name. Forty products make eighty links.

Why the list reads this way

Many shop templates wrap the photo in one link and the name in another, both pointing to the same address. A mouse user sees one item; a keyboard or screen reader meets two stops.

When the photo has no alt text, many screen readers fall back on the file name or the link's address. Camera file names are what customers then hear.

When the photo does have alt text repeating the product name, the file name goes away, but every product is still announced twice in a row.

What the repeats cost a customer

Repeated links make a list page slower and more confusing in several ways:

Screen readers can show every link on a page as a list. A shopper who moves around a shop that way meets each product twice, among a pile of file names.

One link for the photo and the name

The fix is to place the photo and the name inside the same link. The whole block then becomes one stop for the keyboard and one link for the screen reader.

For mouse and touch users, the result looks the same or better: the gap between the photo and the name becomes clickable too, so the target is larger.

Price, colour choices and an add-to-cart button can sit outside that link, since they do something different and deserve stops of their own.

What the photo's description should say

Once photo and name share a link, a screen reader announces both together: the photo's alt text, then the product name. If the alt text repeats the name, it is heard twice in one breath.

Usually the right alt text is empty, written as alt followed by two quotation marks with nothing between them. That tells the screen reader to skip the picture and read only the name.

Leaving the alt attribute out altogether is not the same. A missing alt is what makes many screen readers read out the file name instead.

Where the photo shows something the name does not, such as a colour, add only that: in blue. The name supplies the rest.

Links that all say the same thing

A related problem sits beside many products: a link reading More details or Buy now under each one. Heard in a list of links, thirty identical names tell the shopper nothing.

Where such links stay, the product name should be part of what a screen reader hears, in the visible text or in hidden text read only by screen readers.

Often the simpler choice is to drop them, since the combined photo and name link already leads to the product.

A worked example

A craft soda maker in Powell River sells its sodas by the case online, from ginger beer to rhubarb, with gift boxes and branded bottle openers. Its online shop lists about thirty items in a grid.

A regular customer who is blind mentioned at the farmers' market stall that ordering online took a long time. Each flavour came up twice, once as a string of letters and numbers, before she could choose it.

The list template wrapped each photo and each name in separate links, and the photos had no alt text. The thirty items made sixty links, plus thirty add-to-cart buttons.

The developer changed the template so each photo and name sit inside one link, and gave the photos empty alt text. The case size went into the visible name: ginger beer, case of 12.

Each gift box photo kept a short alt text, since the picture shows which flavours are inside and the name does not.

A screen reader now announces each item once, by its name and size, and the keyboard meets one link per item instead of two.

Checking a list page

Starting at the top of a product list, move through it with the Tab key alone. Count the stops for the first five products, and watch where the highlight lands.

If the highlight is hard to see, that is a second problem. Many templates remove the outline browsers draw around the focused link, and it should show on every link.

Then turn off images in the browser's settings and reload. Each photo is replaced by its alt text, or by nothing, which quickly shows which photos lack one.

Because the list is built by a template, one check covers every category page that uses it, and one fix repairs them all.

The counter-case

Two links can be right where the photo genuinely goes somewhere different from the name, such as a larger view of the picture. Each link then needs a clear name of its own.

A shop whose template is hard to change may need time to fix it properly. Meanwhile, meaningful alt text on each photo removes the worst of it, the file names.

For an ordinary product grid, though, a photo and a name pointing at the same page are one link in everything but the code, and the code should agree.

Fixing the list template

  1. Tab through a product list and count the stops.
  2. Turn images off and look for photos with no text.
  3. Wrap each photo and name in a single link.
  4. Give those photos empty alt text unless they add something.
  5. Keep price and buttons outside the link.
  6. Make sure the focus outline shows clearly.
  7. Check every template that shows a product grid.

Step three is a single change to the template, and every product list built from it improves at once. Ask for it by name: combine the adjacent image and text links.

What a screen reader user hears after pressing the buy button on the product page itself is the theme of an add to cart button that seems to do nothing.


Frequently asked questions

Why do screen readers announce each product twice?

The photo and the name are separate links to the same page, so each is announced, and photos without alt text are often read as file names.

How do I combine the photo and the name?

Place both inside a single link in the product list template. The whole block then becomes one keyboard stop and one link for screen readers.

What alt text should the photo have then?

Usually empty alt text, so the screen reader reads only the name. Add a few words only when the photo shows something the name does not.

Is empty alt text the same as no alt text?

No. Empty alt text tells screen readers to skip the picture. A missing alt attribute often makes them read the file name instead.

Should the price and buttons be in the same link?

No. They do different things and deserve their own stops. Only the photo and name, which lead to the same page, belong together.

How can I check a list page quickly?

Press Tab through the first five products and count the stops, then turn images off and see which photos leave no text behind.

West Coast Media Solutions Inc. provides web design, web development, hosting, digital marketing, and business consulting to organisations across Canada, drawing on more than twenty-five years in the field.

Product list announced twice over?

Share a link to one of your category pages, and we will count the stops and suggest the template change.

Start a Conversation