Skip to main content
MediumWCAG 1.1.1 · Level APerceivable

Decorative Image Has Non-Empty Alt Text

Flags decorative images (role="presentation" or aria-hidden="true") that still contain a non-empty alt attribute.

Rule ID: custom-decorative-image-alt · reported under Needs review, because a person should confirm it.

Who this affects

How to fix it

Problem

<img role="presentation" alt="Company Banner" src="banner.png" />

Fixed

<img role="presentation" alt="" src="banner.png" />

These are short examples. In the extension, A11yEngine points to the element on your own page and can suggest a fix for your code (HTML, React, Vue or Tailwind).

Find this on your own pages

Check any page for this and 100+ other issues in your browser, free.

← All rules