Skip to content
BENIBIX Learn

Decorative Image

Design♿ AccessibilityContent and Media

Also known as Empty Alt Text, Null Alt Attribute

A picture that only looks nice. Screen readers should skip right past it.

Think of it like

It is like the flowers on a birthday card. They look nice, but they do not say anything.

Example

A blog puts a wavy line under each heading. Each line gets an empty alt, so a screen reader says nothing and moves on.

Why it matters

Hearing "image, wave line dot png" ten times on one page wears a listener out.

Definition

A decorative image is a picture that adds looks but no meaning. A border, a swirl or a mood photo beside a heading are common ones. It should be hidden from screen readers, so they do not waste the user's time. In HTML that means an empty alt, with nothing between the quotes. Leaving the alt out is worse, because some readers then speak the file name.

Example code

html
<img src="wave-line.png" alt="">
The empty quotes tell a screen reader to skip the picture.
A picture that tells nothing gets an empty alt, and the reader skips it.

Common mistake

Calling an image decorative when it shows a fact. A chart or a product photo always needs real alt text.

Key takeaways

  1. 1
    Looks, not meaning. Nothing to tell the reader.
  2. 2
    Empty, not missing. Write alt with nothing in it.
  3. 3
    The test. Would anyone miss it if gone?