What to check
An image is decorative when removing it would not remove information, identify a link, or change the meaning of the content. Give a decorative image an empty alt attribute so it is skipped instead of being announced as unnecessary clutter.
Passing examples
These examples meet this check:
- A decorative divider image has alt="".
- A background flourish is ignored as decoration.
- A stock photo that adds no new meaning has alt="".
- A repeated icon beside the same visible words has alt="".
- A decorative border image has alt="".
Failing examples
These examples need attention:
- A decorative divider is announced as blue-line-final.png.
- A decorative background is announced as background image.
- An important diagram is given empty alt text.
- The only image inside a link has empty alt text and leaves the link unnamed.
- A photograph that explains the article is incorrectly treated as decoration.
Helpful note
Leaving alt text empty is correct only for a genuinely decorative image. Do not hide images that provide information or name an action.
