Skip to content

When should a generated website image have an empty text alternative?

Use an empty text alternative when the image adds no information or function beyond nearby content and decoration. Give it meaningful alternative text when it conveys a necessary message or serves as a control. Decide in the actual page context; the same artwork can be decorative in one placement and informative in another.

PROOF AND FINISH A STILL IMAGEAISwapLab team · Editorial methodPublished 2 min read
See the recorded exampleExplore 67 Image SkillsIndependent finishing · Check the actual file
Article workflow: Remove the image mentally; Check interactive use; Document the placement decision.
Workflow diagram: Remove the image mentally → Check interactive use → Document the placement decision. Read the article for evidence and limits.

Determine image function in its actual page context

A visually elaborate generated background may be entirely decorative, while a simple arrow can carry essential information. An empty alternative is a deliberate accessibility choice, not a missing editorial task. Functional images require describing their purpose rather than merely their appearance.

What to do next

  1. 01

    Remove the image mentally

    Read the surrounding content and ask whether any information, instruction or action disappears. Record the loss explicitly; if nothing relevant is lost, a decorative treatment may be appropriate.

  2. 02

    Check interactive use

    Determine whether the image is the only content of a link or button. A decorative appearance does not make an unlabeled control accessible; its accessible name must identify the destination or action.

  3. 03

    Document the placement decision

    Save the decision with the page component, not only the image filename. Review again when the artwork moves to a different context or when nearby explanatory text is removed.

A concrete example

Illustrative example: A generated cloud texture behind a written event invitation adds atmosphere only, so it receives an empty alternative. When a cropped version becomes the sole content of a link to the gallery, that link needs an accessible name describing its destination.

Placement decision worksheet

UseInformation or functionAlternative approach
Invitation backgroundAtmosphere onlyEmpty alternative
Gallery link imageOpen galleryAccessible destination name

Before you call it ready

  • The decision uses the actual page context.
  • Interactive functions have meaningful names.
  • Empty alternatives are intentional and recorded.

When to stop or choose another method

Review again whenever the image gains a function or the surrounding text changes its informational role.

Sources

Review the result in context.

Compare the recorded example and its documented limitations.

See the recorded example