Skip to content
Design systems and accessibilityguide

How to silence a decorative icon beside a heading

By SkeuDesign Editorial Team1 min read

Answer in brief

Use an empty alt attribute on a decorative img when the neighboring heading already conveys its meaning. Keep the heading text in the document.

Read the section title once

A small compass precedes “Explore nearby”. Set alt="" on the compass and read through the heading with a screen reader. Then disable images and check whether the section still makes sense.

Inspect the heading after a redesign

An illustration can stop being decorative when a title is shortened. If “Verified seller” becomes just a seller's name and only the badge conveys verification, provide that information in text. Recheck the heading and badge together whenever a copy change removes information they previously shared.

Sources

  1. [1] Decorative Images | Web Accessibility Initiative (WAI) | W3C — W3C, accessed November 23, 2026

Frequently asked questions

Can I just omit alt?

An omitted attribute leaves the text alternative unspecified. An explicitly empty value identifies the decoration in this example.