Skip to main content
MediumWCAG 1.4.5 · Level AAPerceivable

Image Appears to Contain Styled Text

Flags images whose alt text is a full sentence (>30 chars), indicating text baked into images instead of HTML.

Rule ID: custom-images-of-text · reported under Needs review, because a person should confirm it.

Who this affects

How to fix it

Problem

<img alt="Special Offer 50% Off Everything Today Only Click Now" src="banner.png" />

Fixed

<div class="bg-indigo-600 text-white p-6 font-bold text-2xl">Special Offer 50% Off Everything</div>

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