Accessibility Design Guidelines:
Images
Why is this Important?
There are a variety of reasons to display images and each should be accessible to users via key board tabbing and those using screen readers.
Images are content on a website that is considered to be inaccessible to anyone who cannot see the images. People with vision impairments such as colour blindness, low vision or completely blind individuals are burdened by images that are not accompanied by contextual and descriptive information that provides meaning to these users.
As designers, we can implement simple solutions to these problems by incorporating some of the methods demonstrated below. These are a few examples of the ways we can ensure that a website meets WCAG standards.
Source: Photo by Melinda Neale
Best Practices
Below are examples of how to address the types of images in accordance with AODA regulations. These will vary depending upon the purpose of the image displayed and its context on a webpage.
EXAMPLES
Click on the icons below to reveal the corresponding WCAG Success Criteria
Example 1
Aesthetic Images
Images displayed on a website may be used solely for aesthetic reasons, such as a hero image or used in a carousel. It benefits those using assistive technology to include alternative text.The alternative text (HTML) used should be short and relevant to nature of the images.
<img src="butterfly.jpg" alt="butterfly hovering">
Example 2
Product Images
Product images provide the user with a visual description of a product. Visually impaired users cannot see the product and instead be provided with relevant text information to help them with their product purchase. This benefits those using assistive technology.
<img src="pinkroses.jpg" alt="Pink Roses Bouquet">
Pink Roses Bouquet
Enjoy floral bouquets with our unique collection of florals. Our flower catalogue features a variety of arrangements.
BUY NOWExample 3
Icons Images as Buttons
Images icons are intended to generate a meaning or purpose to a user, such a as a 'share' icon. These buttons are often presented as symbols. In these cases, the icon image should have a text description assigned to it to translate it's meaning. This benefits individuals with elderly persons and people with cognitive and visual impairments.
<button class="button">
  <img src="cart.svg" alt="cart button">CART
</button>
NOTE: If you do not use text, be sure to add this code below so that the icon names can still be identified by screen readers:
<span class="visually-hidden"> CART</span>
.visually-hidden{
  border:0;clip:rect(0,0,0,0);height:1px;overflow: hidden;padding:0;position:absolute;width:1px;
}
TOP: The top set of icon images have no related text description to support the symbols meaning.
BOTTOM: The bottom set of icon images relay the meaning of the button to a user. In this case, the text should not be embedded into the image but rather, as part of the website code. See example.
In addition to including text as a accessible name for a button, also ensure it has a meaningful text alternative.
Example 4
Complex Images (Graphs and Charts)
Complex images that contain information presented by graphs and charts can not be deciphered by some users with disabilities. Data must be provided via a text link by use of the longdesc="" attribute added to the image element. An additional text link can be pointed to the URL that contains a webpage of the related description of the graph or chart.
See example below.
<img src="datachartfig1.jpg" alt="Figure 1 Showing the percentages of users based upon age" longdesc="datachartfig1.html">
<a href="#" role="link">Read the details of this chart</a>
Example 5
Logo Images
Logo images usually appear at the top of every webpage in the same location throughout a website. These link to the website's homepage. If the logo image used does not contain the name of the company or convey information to that affect, a descriptive text link should be provided in conjunction with alternative text.
<a href="https://www.friendlyflowershop.123">
  <img src="flowerlogo.svg" alt="flower shop logo">
  Friendly Flower Shop Homepage
</a>
The Success Criteria for Images
Who Does This Benefit?
user IconUsing Keyboards for Navigation
vision IconVisual Impairments
computer IconPerson with a Motor Impairment
brain IconCognitive and Learning Disabilities
external link icon  Learn More About Accessible ImagesThe Related WCAG Success Criteria
1.1.1 Non-text Content
(Level A)
1.4.9 Images of Text (No Exception)
(Level AAA)
2.4.4 Link purpose (in context)
(Level A)
2.4.10 Section Headings
(Level AAA)
3.2.1 On Focus
(Level AA)