Recreate informative images using HTML and CSS instead
no. 140
Make sure none of the informative content in the page is provided in images
There is a belief, even to this day, that in order to be accessible, a page needs to avoid images altogether. While this is obviously false as long as these images are properly informed using alt text, there is still some truth to this. Images can be more difficult to perceive than regular text for some users because of the legibility of the font used, how fancy the font is, its compression ratio and how pixelated it gets when a user tries to zoom in at high level to read it properly. No matter how high of a quality an image turns out being, regular HTML text (styled with CSS) will always be more accessible when the content needs to be displayed in a different presentation. To avoid potential problems, it is preferable for informative content in pages to be provided in text, unless it is downright impossible to achieve the exact same results, using HTML and CSS.
To do so, simply make it a rule to avoid images of text whenever possible and rely on a combination of background images and superposed text, to recreate the intent of the image and achieve the expected results using CSS. With todays’ advances in browser support, there is really no reason to keep creating images of text when a similar presentation can be achieved otherwise. There are, of course, exceptions to this, such as company logos, but every image that turns out being interpreted in a similar fashion using just HTML and CSS will offer a lot more flexibility to anyone who requires modifying the default presentation of the page in order to be able to comfortably consume the content.
User Story
As a user who has low vision or has difficulty reading, I want every element of content to be provided in HTML and CSS, so that I can reliably control its presentation to facilitate reading.
Simple Code Example
Not Applicable
Testing Methodology
Using the Web Developer Toolbar for Firefox, select the “Outline Images » Outline All Images” test under “Images” and check that none of the images contain informative or meaningful text.
Specification Details
WCAG 2.0: Level AA
Principle: Perceivable
Guideline: 1.4 Distinguishable
Success Criterion: 1.4.5 Images of Text
Related Technique: G140
Category: General















