How to Identify Images Missing Alt Text

Written by

in

Alternative text provides a text alternative for an image when its information or function needs to be conveyed. The right treatment depends on what the image does in the page—not merely whether an automated report finds an attribute.

Distinguish missing from intentionally empty

An image with no alt attribute is different from one with an intentionally empty attribute, written as alt=””. Decorative images often need empty alternatives so they do not add unnecessary noise. Do not fill every empty attribute automatically.

Review the image in context

  1. Open the page containing the image.
  2. Identify what information or function the image contributes.
  3. Read nearby text to avoid unnecessary repetition.
  4. Determine whether a concise alternative is enough or a longer explanation is needed elsewhere.

Write an informative alternative

Describe the relevant information. A photograph showing how to locate an entrance might use “Workshop entrance beside the blue side gate” if that accurately describes it. A decorative texture behind the same section would not need that kind of description.

Handle functional images

For an image used as a link or button, consider the action or destination and the accessible name of the whole control. An icon that submits a search needs an appropriate label for the function; a description of its shape alone may not help.

Handle charts and detailed diagrams

A short alternative may identify a chart without conveying all of its data. Provide the important information in nearby text, an accessible table, or a longer description as appropriate. Do not try to fit an entire technical explanation into a short image attribute.

Update and verify

Use your publishing system’s image settings, then inspect the live page. Some systems store media-library text separately from individual image instances. Confirm that the intended alternative appears where the image is actually used.

What automated checking cannot prove

A scanner may detect absent attributes, but the presence of text does not prove that it is appropriate. Keyword stuffing, filenames, and inaccurate descriptions can pass a basic presence check while remaining unhelpful.

For detailed decision guidance, consult the W3C WAI image alternative text decision tree.