WCAG 1.1.1: Non-Text Content (Decorative Images)

Back to all WCAG criteria

OVERVIEW

Effort:

  • Complexity:Easy
  • Duration:Fast

Important for:

Content

What's it about?

Decorative images that provide only visual flair and no important information do not need a text alternative. These include:

  • redundant icons
  • divider lines
  • patterned background shapes
Three illustrations of decorative graphics, shown next to an illustrated robot head representing a screen reader. The screen reader reads nothing because the images have no alt text.

How to

Depending on your situation, you can implement one of the following options to meet the criterion. For a deeper dive, please refer to the linked WCAG techniques.

  • Hiding decorative vector graphics

    (Vector) graphics embedded as SVGs (<svg>), icon fonts (<i>), or similar do not have an alt attribute.

    When a screen reader encounters an SVG without a name, it simply announces “image.” To ensure these graphics are ignored by the screen reader, you must hide them using aria-hidden="true".

  • Insert decorative images via CSS

    Elements that are only for presentation should ideally not appear in the HTML at all. This can be achieved by inserting decorative images through CSS, for example using the background-image property.

    Learn accessibility with us?

    Looking to implement WCAG best practices in your design, development, or content workflow? Book a workshop for your team or contact us directly to learn more.

    Send us an email!