Recent chats
ASKGEEZ Q&A GUIDETechnology & devices

When should an image use empty alternative text?

Quick answer

Use empty alternative text (alt="") when an image adds no information in context or its relevant information is already conveyed nearby. If the image contributes information that nearby text does not provide, don’t treat it as decorative: use alternative text that conveys that contribution. Don’t omit the alt attribute as a substitute for an empty value; some screen readers may announce the filename instead. [S1]

LET’S WORK THROUGH IT

The question, the details, the next step.

Question

How do I tell whether an image is decorative or informative? I’m adding images to a page and don’t want to choose empty alt text just because an image looks simple.

Geez

Start with the image’s job in that particular spot, not its appearance. Ask: “What would someone miss if this image were ignored?” If the answer is nothing important because it is visual decoration, empty alternative text is appropriate. If nearby text already conveys the image’s relevant information, the image may also use empty alternative text to avoid repetition. If the image adds something the text does not, don’t treat it as decorative; provide alternative text that conveys that contribution. The key distinction is the image’s purpose in context. [S1]

For example, assume a page heading says “Spring workshop” and a small flourish beside it is only there for appearance. The flourish adds no information, so it can be empty. But if an image shows which button to select in a pictured interface, and the instructions don’t name that button, the image contributes information. Don’t treat it as decorative just because it is small or visually simple.

Follow-up question

What does “redundant” mean in practice? If a picture shows the same thing as a caption, should I repeat the caption in alt text?

Geez

Compare the information conveyed by the image with the text a reader already encounters nearby. If that text communicates the image’s relevant point, repeating it in alternative text can create clutter for someone using assistive technology. W3C identifies information already conveyed by nearby text as a reason to use an empty alt value. [S1]

Example: assume an article includes a photo of a building, and the adjacent caption says, “The north entrance is closed; use the west entrance.” If that caption supplies the point readers need from the image, repeating the same sentence as alt text may be redundant. If instead the image shows a route or feature the caption does not describe, consider what additional information the image contributes. Don’t decide from the caption’s mere presence; compare what each actually communicates.

Follow-up question

Why not leave the alt attribute out when the image has no useful information? Isn’t that the same as making it blank?

Geez

No. An empty value and an omitted attribute are different. For an image intended to be ignored, use an explicit empty value: alt="". W3C warns that if the alt attribute is omitted, some screen readers may announce the image’s filename. [S1]

For example, a decorative divider could be written as <img src="divider.png" alt="">. The empty value expresses that the image contributes no information in this context. Leaving alt off does not express that same choice. This example illustrates the markup distinction; it is not a guarantee about how every browser and assistive technology will behave.

Follow-up question

Can you give me a quick way to review a page with a mix of decorative, repeated, and informative images?

Geez

Review each image in place, using this three-way decision:

  1. Decorative: It adds no information in context. Use alt="".
  2. Already conveyed nearby: Its relevant information is already available in adjacent text. Use alt="" rather than repeating that information.
  3. Informative: It contributes information not otherwise conveyed. Don’t mark it as decorative; use alternative text that communicates that contribution.

Worked example, under these assumptions: a product page has a decorative starburst beside its heading, a product photo with a caption that already identifies the item and its key feature, and a diagram whose labeled steps explain a process not described in text. The starburst and redundant product photo could use empty alt values; the diagram contributes information that needs to be conveyed in alternative text. The actual decision depends on the page context, so the example doesn’t establish the right choice for every similar-looking image.

The decision is about what information the image contributes and whether nearby text already supplies it. [S1]

A practical checklist

  • Review the image where it appears, not in isolation.

  • Ask what information would be lost if the image were ignored.

  • Check whether nearby text already communicates the image’s relevant information.

  • Use alt="" for decorative or redundant images.

  • For informative images, convey the contribution that surrounding text does not provide.

  • Do not omit the alt attribute as a replacement for an intentional empty value.

A few more useful answers

Does a caption automatically make an image redundant?

No. Compare the caption with the information the image contributes. If the caption already conveys the relevant point, empty alt text may avoid repetition; if the image adds information, account for that difference. [S1]

What should I do if I’m unsure whether an image adds information?

Review it in context and identify what a reader would miss if the image were ignored. Purpose in context—not appearance alone—is central to the decision. [S1]

Sources

References used for this guide.

  1. [S1] Decorative Images — W3C Web Accessibility Initiative
    w3.org · Checked

YOUR QUESTION. YOUR DETAILS.

Let’s work through your situation.

Get a tailored answer or help with your next task. Starts at $1, with a quote before you pay.

Ask your own question
← Back to Geez at Work