Guides · Updated 24 November 2026

How to fix missing alt text and form labels

Two problems account for a large share of what blocks screen-reader users on store home pages. In February 2026, 53.1% of the top million home pages had images with missing alternative text and 51% had form inputs without labels. One third (33.1%) of all home page form inputs were not properly labelled (WebAIM Million 2026).

Part 1: alt text

What good alt text looks like

ImageWeak altBetter alt
Product photo"IMG_2041.jpg", "product image""Navy linen apron with two front pockets and leather straps"
Linked logo"logo""Juniper & Co home" (say where the link goes)
Promo banner with text"banner"The words on the banner: "Free shipping on orders over $50"
Decorative divider"divider"alt="" (empty: screen readers skip it)

WebAIM also found that 10.8% of images that did have alt text used questionable or repetitive text such as "image", a file name, or text identical to the text next to it.

Shopify

  1. Products → open a product → click each image → Add alt text.
  2. Online Store → Themes → Customize: image blocks in sections also have an alt field.
  3. Make sure the theme outputs it (some custom sections don't):
{{ image | image_url: width: 900 | image_tag: alt: image.alt, loading: 'lazy' }}

WordPress / WooCommerce

Media → Library → select image → Alternative Text. The alt text saved here is used when the image is inserted after you set it; images already placed in posts may need updating in the block editor.

Plain HTML

<img src="/img/apron-navy.jpg" alt="Navy linen apron with two front pockets">
<img src="/img/swirl.svg" alt="">  <!-- decorative -->

Icon links and buttons are the same problem

An SVG icon inside a link has no alt attribute at all, so the link has no name. Empty links were on 46.3% of top home pages and empty buttons on 30.6%.

<a href="/cart" aria-label="Cart, 2 items"><svg aria-hidden="true" focusable="false">…</svg></a>
<button type="button" aria-label="Next slide"><svg aria-hidden="true" focusable="false">…</svg></button>

Part 2: form labels

Why placeholders are not enough

Placeholder text vanishes as soon as someone starts typing, is often low-contrast, and is not reliably announced as the field's name. Use a real label, visible if possible.

Three valid ways to label a field

<!-- 1. Visible label (best) -->
<label for="email">Email address</label>
<input id="email" type="email" name="email" autocomplete="email">

<!-- 2. Wrapping label -->
<label>Quantity <input type="number" name="quantity" min="1" value="1"></label>

<!-- 3. No visible text in the design -->
<input type="search" name="q" aria-label="Search products" placeholder="Search">

Shopify newsletter and search

<label class="visually-hidden" for="Search-{{ section.id }}">Search products</label>
<input id="Search-{{ section.id }}" type="search" name="q" placeholder="Search">

Add autocomplete="email", "tel", "given-name" and so on to personal-data fields (WCAG 1.3.5 Identify Input Purpose).

Duplicate IDs break labels

If a theme renders the same form twice and both inputs use id="Email", a <label for="Email"> can attach to the wrong one. Make IDs unique per section.

Verify

Run the pre-check again: the "images have no alt attribute", "links have no text", "buttons have no accessible name" and "form fields have no label" findings should drop to zero. Then listen to the page with VoiceOver (Mac/iPhone) or NVDA (free, Windows) to confirm the text makes sense.

Check your own site in 20 seconds

Run the free AccessReady pre-check for a technical readiness score, the exact code we found, and copy-paste fixes.

FAQ

Should every image have alt text?

Every image should have an alt attribute. Informative images need descriptive text; purely decorative images should have an empty alt (alt="") so screen readers skip them.

How long should alt text be?

As short as possible while still conveying what matters, usually one sentence. For products, include the details a shopper would want: colour, material, key features.

Is aria-label as good as a visible label?

It gives the field an accessible name, but a visible label also helps sighted users with memory or cognitive disabilities. Use visible labels where the design allows.

This guide is general technical information, not legal advice. Automated checks find only part of accessibility problems; a good automated score does not mean a site conforms to WCAG or meets any law.