WCAG 1.4.5: Images of Text
Introduction to WCAG 1.4.5 Images of Text
WCAG Success Criterion 1.4.5, "Images of Text," at Level AA, mandates that if a visual presentation can be achieved using standard web technologies, then actual text should be used to convey information instead of images containing text. This criterion is key to ensuring flexibility and accessibility, enabling users to tailor their browsing experience without the limitations of fixed, image-based text.
Why WCAG 1.4.5 Matters
Using real text rather than images of text significantly enhances web accessibility and usability for a wide range of users and scenarios:
Enhanced Readability and Customization
Real text allows users to adjust its visual presentation to suit their individual needs. This includes:
Accessibility for Diverse Users
Various user groups benefit directly from real text:
Understanding Success Criterion 1.4.5: Images of Text (Level AA)
The success criterion explicitly states: "If the technologies being used can achieve the visual presentation, text is used to convey information rather than images of text." (Level AA)
This means that for any content that can be rendered as text using standard web technologies (HTML and CSS), it must be presented as real text. The criterion acknowledges that there are specific situations where images of text are permitted:
Practical Guidelines for Compliance
Prioritize Real Text with CSS
The most straightforward way to comply is to always use HTML text elements (e.g., <h1>–<h6>, <p>, <span>, <a>, <button>) and style them using CSS. This ensures maximum flexibility and accessibility for all users.
Leverage Web Fonts
To maintain brand identity and achieve specific typographic styles without sacrificing accessibility, use @font-face to embed custom web fonts. This allows you to achieve unique visual aesthetics while keeping the text as actual, selectable, scalable, and accessible text.
Strategic Use of SVG
Scalable Vector Graphics (SVG) are excellent for icons and complex graphics. While SVG can embed text, if an SVG contains important text, that text should ideally be rendered as true text within the SVG (using <text> elements) or accompanied by accessible text alternatives. For simple icons, use SVG for the graphic and provide accompanying real text labels outside the SVG.
Examples of Correct and Incorrect Implementations
Correct Implementation: Real Text with CSS
This example demonstrates how to style headings and buttons using real HTML text and CSS, allowing for full accessibility customization.
HTML:
CSS:
Incorrect Implementation: Images of Text
This example shows how using images for text content violates WCAG 1.4.5, hindering accessibility and customization.
HTML:
CSS (no styling possible for text within the image):
Exception Example: Logotypes
A company logo, even if it contains text, is an allowed exception as a logotype.
HTML:
CSS (for responsiveness):
Explanation: The company logo is a logotype, which is explicitly allowed as an exception under WCAG 1.4.5. The alt attribute and aria-label on the link provide appropriate text alternatives for screen readers.
Best Practices and Common Pitfalls
Best Practices
Common Pitfalls
Related WCAG Guidelines
Related posts
- WCAG 5.2.3: Complete processes
- WCAG 5.2.4: Only Accessibility-Supported Ways of Using Technologies
- WCAG 5.2.5: Non-Interference
- WCAG 5.3.1: Required elements of the conformity declaration
- WCAG 5.3.2: Optional Components of a Conformance Claim
Still looking for answers?
Ask our experts using online chat