This document provides information about the Acquia Web Governance accessibility check:
Do the images contain text?
What
In the HTML markup, text must be presented as actual text instead of text embedded within an image. This ensures that the text can be resized, read by screen readers, and adapted to different user needs. Except for a few cases where it is essential to embed text within an image for branding or design purposes, actual text improves accessibility and usability.
Why
Images of text can create significant barriers for accessibility because:
Screen readers cannot interpret text inside images unless a text alternative (alt attribute) is provided.
Users cannot adjust text size, font, or contrast when it is embedded in an image.
Text in images may appear blurry or pixelated when users zoom in on it.
Language translation tools cannot translate text in images.
Ensure that text:
Is real
Can be selected
Can be adjusted for scale
Examples
This section provides some pass and fail examples of this success criteria.
Pass examples
Use HTML text instead of an image for headings:
<h1>Welcome to Our Website</h1>
Why this works: The text can be selected, read by screen readers, and resized easily.
Use CSS to style text instead of embedding the text in an image:
Why this works: The logo is an essential image, and the alt text provides an accessible description.
Fail examples
An image with a text banner instead of real text:
<img src="welcome-banner.png" alt="Welcome to Our Website">
Issue: The text is embedded in an image, which makes it inaccessible for screen readers and difficult to resize.
Fix: Use real text with CSS styling.
An image for a call-to-action button instead of an actual button element:
<img src="signup-now.png" alt="Sign Up Now">
Issue: Users who rely on assistive technology may not recognize this as an interactive element.
Fix: Use an actual button element with text:
<button>Sign Up Now</button>
How
This section provides information about how to identify and fix the issue.
How to identify it
The Acquia Web Governance platform highlights elements that contain text with insufficient contrast levels, including standard text on the website as well as link text in various states.
Identify all images on the page.
Look for images that contain text-based content, and are not decorative or photographic elements.
Determine if the text in the image is essential with the following questions:
Is the text part of a logo or branding? ✅ (Allowed Exception).
Can the text be presented in real text format instead? ✅ (Preferred Approach).
Check for an appropriate text alternative. If the image must contain text, does it have an alt attribute that accurately conveys the same information?
Use browser tools to inspect text accessibility with the following methods:
Try to select the text in the image. If you cannot, it is likely inaccessible.
Zoom in on the page and check if the text remains clear and readable.
How to fix it
Use real text instead of images whenever possible.
<h2 style="color: #ff5733;">Limited Time Offer: 30% Off!</h2>
Why this works: The text remains accessible and can be resized or read by screen readers.
This document provides information about the Acquia Web Governance accessibility check:
Do the images contain text?
What
In the HTML markup, text must be presented as actual text instead of text embedded within an image. This ensures that the text can be resized, read by screen readers, and adapted to different user needs. Except for a few cases where it is essential to embed text within an image for branding or design purposes, actual text improves accessibility and usability.
Why
Images of text can create significant barriers for accessibility because:
Screen readers cannot interpret text inside images unless a text alternative (alt attribute) is provided.
Users cannot adjust text size, font, or contrast when it is embedded in an image.
Text in images may appear blurry or pixelated when users zoom in on it.
Language translation tools cannot translate text in images.
Ensure that text:
Is real
Can be selected
Can be adjusted for scale
Examples
This section provides some pass and fail examples of this success criteria.
Pass examples
Use HTML text instead of an image for headings:
<h1>Welcome to Our Website</h1>
Why this works: The text can be selected, read by screen readers, and resized easily.
Use CSS to style text instead of embedding the text in an image:
Why this works: The logo is an essential image, and the alt text provides an accessible description.
Fail examples
An image with a text banner instead of real text:
<img src="welcome-banner.png" alt="Welcome to Our Website">
Issue: The text is embedded in an image, which makes it inaccessible for screen readers and difficult to resize.
Fix: Use real text with CSS styling.
An image for a call-to-action button instead of an actual button element:
<img src="signup-now.png" alt="Sign Up Now">
Issue: Users who rely on assistive technology may not recognize this as an interactive element.
Fix: Use an actual button element with text:
<button>Sign Up Now</button>
How
This section provides information about how to identify and fix the issue.
How to identify it
The Acquia Web Governance platform highlights elements that contain text with insufficient contrast levels, including standard text on the website as well as link text in various states.
Identify all images on the page.
Look for images that contain text-based content, and are not decorative or photographic elements.
Determine if the text in the image is essential with the following questions:
Is the text part of a logo or branding? ✅ (Allowed Exception).
Can the text be presented in real text format instead? ✅ (Preferred Approach).
Check for an appropriate text alternative. If the image must contain text, does it have an alt attribute that accurately conveys the same information?
Use browser tools to inspect text accessibility with the following methods:
Try to select the text in the image. If you cannot, it is likely inaccessible.
Zoom in on the page and check if the text remains clear and readable.
How to fix it
Use real text instead of images whenever possible.
<h2 style="color: #ff5733;">Limited Time Offer: 30% Off!</h2>
Why this works: The text remains accessible and can be resized or read by screen readers.