Image alt text

How to write alt text that helps screen-reader users and image search, and when an image should have an empty alt instead.

What AuditX checks

The scan checks every img element on the page for an alt attribute and reports how many have none, naming up to three of them by file name. Images marked decorative with an empty alt="" count as correct. The exception is an image that is the only content of a link or button: with alt="" that link has no name at all, so it counts as missing.

Why it matters

Screen readers read the alt text out loud in place of the image. Without it, a blind visitor hears the file name, or nothing at all.

Search engines use alt text to understand images, which matters for image search and for links that are images.

How to fix it

  1. For an image that carries meaning, describe what it shows in a short sentence: alt="Sourdough loaf on a wooden board".
  2. For an image that is a link or a button, describe where it goes or what it does, not what it looks like.
  3. For a purely decorative image, use an empty alt (alt="") so screen readers skip it. An empty alt is correct; a missing one is not.
<img src="loaf.webp" alt="Sourdough loaf on a wooden board">
<img src="divider.svg" alt="">

Does your site pass this check? A free scan runs it with every other check and shows the result in about a minute.

Scan my site

Sources

Related checks

Last reviewed 2026-11-13.