We'd like to set Google Analytics cookies to learn how people use the Knowledge Base, so we can improve it. We set them only if you accept.

Skip to main content
Digital Accessibility Knowledge Base

alt-text-for-decorative-images

Web validation

Decorative images must have empty alt text (alt="") or be marked as presentational.

A decorative image adds no information of its own. It might be a divider, a border, a flourish, or a picture whose meaning is already given by nearby text. Screen readers should skip it. To make that happen, give the image an empty alt attribute (alt=""), or mark it as presentational with role="none". If a decorative image has descriptive alt text, screen readers announce it, adding noise that interrupts reading and navigation.

Pass Patterns

Empty alt text

An empty alt tells assistive technology to skip the image.

HTML
<img src="divider.png" alt="" />

Empty alt written as a bare attribute

The alt attribute does not need a value in the markup. A bare alt is treated the same as alt="", so the image is still skipped.

HTML
<img src="spacer.png" alt />

Marked as presentational

A presentation role removes the image from the accessibility tree, with no alt needed. role="none" and role="presentation" are synonyms.

HTML
<img src="border.png" role="none" />

Fail Patterns

Descriptive alt on a decorative image

The alt text causes a purely decorative image to be announced, adding noise.

HTML
<img src="flourish.png" alt="Blue decorative flourish" />

Presentation role overridden by aria-label

aria-label is an ARIA attribute, so it overrides the presentation role through presentational roles conflict resolution. The image is exposed and announced even though it is marked as decorative.

HTML
<img src="background.png" role="none" aria-label="Abstract background pattern" />

WCAG techniques

Sufficient techniques

Failure techniques

ACT Rules

Try It Yourself

Using a screen reader

New to screen reader testing, or need a refresher?
Review this article first: Practical guides for using screen readers

  1. Load the page and open a screen reader.
  2. Navigate through the content that contains decorative images.
  3. Listen for how images are announced.

Expected results: Decorative images are skipped and not announced.

Actual results: Images with descriptive alt text are announced, even though they add no value.

Inspecting the browser dev-tools

  1. Open browser dev tools.
  2. Select the Elements panel.
  3. Inspect a decorative image.
  4. Check the accessibility tree.

Expected results: The image is not exposed, or has no accessible name.

Actual results: The image appears with a name derived from its alt text.

FAQ

How does this issue relate to 1.1.1 Non-text Content?

SC 1.1.1 allows non-text content that is pure decoration to be implemented so that assistive technology can ignore it. A decorative image with a non-empty accessible name is instead treated as meaningful content, so it is announced when it should be skipped.

Why is this issue marked as Minor?

This issue does not block access, but it adds noise for assistive technology users. Extra announcements can slow navigation and make content harder to follow, especially on pages with many decorative images.

Why does this check require human review?

Whether an image is decorative or informative depends on why it was placed on the page, which a tool cannot determine. This check surfaces images that look decorative but still carry an accessible name so that a reviewer can confirm the intent and the correct markup.

Standards and Regulations

StandardSuccess CriterionReference
WCAG 2.21.1.1 Non-text Content (A)All non-text content that is presented to the user has a text alternative that serves the equivalent purpose, except for controls/input, time-based media, tests, sensory experiences, CAPTCHA, and decoration/formatting/invisible content.
EN 301 5499.1.1.1 Non-text ContentSame as the WCAG text.
Section 5081194.22(a)A text equivalent for every non-text element shall be provided (e.g., via “`alt`”, “`longdesc`”, or in-element content).
508 Trusted Tester1.1.1-decorative-image, 7.BThere is no accessible name and accessible description for a decorative image.

Personas impacted by this issue

Learn More