Posted on by Léonie Watson
The Web Content Accessibility Guidelines (WCAG) are a set of recommendations for making websites and apps accessible to people with disabilities. This article explains WCAG and how to use them.
WCAG has been the internationally recognised standard for web accessibility for more than 20 years. WCAG 1.0 was published by the W3C in 1999, WCAG 2.0 in 2008, and WCAG 2.1 in 2018. The W3C is now working on WCAG 2.2 and expects to publish it sometime during late 2022, early 2023.
The Accessibility Guidelines Working Group (AG WG) is responsible for creating WCAG at the W3C. Members of AG WG include large technology companies like Adobe and Google, accessibility companies like TetraLogical, and many people who represent other organisations with an interest in accessibility. The AG WG also consults widely with the web community to make sure that each version of WCAG receives feedback from as many people who will use them as possible.
The structure of WCAG changed between WCAG 1.0 and WCAG 2.0. Since then there have been 4 principles in WCAG, designed to help you think about the ways people use web content:
Information and user interface components must be presentable to users in ways they can perceive.
People will perceive, or become aware of, content in different ways. For example, a sighted person will see the content, a blind person may listen to it as synthetic speech and a deaf-blind person will feel it with their fingertips as electronic Braille.
User interface components and navigation must be operable.
People will operate, or use, content in different ways. For example, someone with a physical disability that means they can't use a mouse may use the keyboard or voice recognition instead of a mouse or trackpad.
Information and the operation of the user interface must be understandable.
People understand content differently. For example someone who has difficulty reading may want acronyms to be written out in full, someone who is blind will want their screen reader to speak foreign language content using the correct accent, and someone who has a learning disability will prefer things to work consistently wherever they find them.
Content must be robust enough that it can be interpreted by a wide variety of user agents, including assistive technologies.
People use different devices and browsers to access the web, many will use assistive technologies too, and web content needs to work reliably on them all. For example someone with low vision might use Safari on an iOS device with zoom enabled, someone who is blind might use Firefox on Windows 10 with the NVDA screen reader, or a person who is unable to use a mouse or keyboard might use Internet Explorer on Windows 7 with Dragon voice recognition software.
There are 12 guidelines that support the 4 principles in WCAG 2.1. Each guideline is broken down into individual requirements known as Success Criteria or SC for short.
Guideline 1.1 Text Alternatives
Provide text alternatives for any non-text content so that it can be changed into other forms people need, such as large print, braille, speech, symbols or simpler language.
Not everyone is able to see graphical content, but text can be read by people who cannot see images and it can be adapted so people can read it in different ways. For example, a text description of an image can be converted into synthetic speech or electronic Braille using a screen reader.
There is one SC under Guideline 1.1 Text Alternatives:
Guideline 1.2 Time-based Media
Provide alternatives for time-based media.
Not everyone is able to see or hear time-based media, otherwise known as multi-media, so alternatives are needed. Text alternatives in the form of transcripts or real-time synchronised captions will enable people who are deaf or hard of hearing to experience audio content, and text also forms the basis for scripted audio description that describes video content to people unable to see it.
There are 9 SC under Guideline 1.2 Time-based Media:
- 1.2.1 Audio-only and Video-only (Prerecorded) (Level A)
- 1.2.2 Captions (Prerecorded) (Level A)
- 1.2.3 Audio Description or Media Alternative (Prerecorded) (Level A)
- 1.2.4 Captions (Live) (Level AA)
- 1.2.5 Audio Description (Prerecorded) (Level AA)
- 1.2.6 Sign Language (Prerecorded) (Level AAA)
- 1.2.7 Extended Audio Description (Prerecorded) (Level AAA)
- 1.2.8 Media Alternative (Prerecorded) (Level AAA)
- 1.2.9 Audio-only (Live) (Level AAA)
Guideline 1.3 Adaptable
Create content that can be presented in different ways (for example simpler layout) without losing information or structure.
People will adapt the way content is presented based on their needs or preferences. For example, someone with low vision may choose to use their own style sheets because they prefer a particular font, someone with a physical disability may need content to always be in the portrait orientation because their tablet is fixed to their wheelchair in that position, or someone with a cognitive disability may use a browser plug-in that helps them identify the purpose of form fields that ask for their personal data.
There are 6 SC under Guideline 1.3 Adaptable:
- 1.3.1 Info and Relationships (Level A)
- 1.3.2 Meaningful Sequence (Level A)
- 1.3.3 Sensory Characteristics (Level A)
- 1.3.4 Orientation (Level AA)
- 1.3.5 Identify Input Purpose (Level AA)
- 1.3.6 Identify Purpose (Level AAA)
Guideline 1.4 Distinguishable
Make it easier for users to see and hear content including separating foreground from background.
Certain things can make it harder for people to see or hear content. For example if the colour of text doesn't show up clearly against the background it will be harder for people with low vision to make out, if a video plays automatically it may be so loud that a blind person cannot hear what their screen reader is saying or someone with a cognitive disability may find it so distracting they cannot use the page at all.
There are 13 SC under Guideline 1.4 Distinguishable:
- 1.4.1 Use of Color (Level A)
- 1.4.2 Audio Control (Level A)
- 1.4.3 Contrast (Minimum) (Level AA)
- 1.4.4 Resize Text (Level AA)
- 1.4.5 Images of Text (Level AA)
- 1.4.6 Contrast (Enhanced) (Level AAA)
- 1.4.7 Low or No Background Audio (Level AAA)
- 1.4.8 Visual Presentation (Level AAA)
- 1.4.9 Images of Text (No Exception) (Level AAA)
- 1.4.10 Reflow (Level AA)
- 1.4.11 Non-text Contrast (Level AA)
- 1.4.12 Text Spacing (Level AA)
- 1.4.13 Content on Hover or Focus (Level AA)
Guideline 2.1 Keyboard Accessible
Make all functionality available from a keyboard.
Not everyone uses a mouse or a trackpad and there are different alternatives available. Many people with physical disabilities will use a keyboard, but some will use voice recognition software that is also dependent on the content being keyboard accessible. People who use other assistive technologies like screen readers or screen magnification often use a keyboard too.
There are 4 SC under Guideline 2.1 Keyboard Accessible:
- 2.1.1 Keyboard (Level A)
- 2.1.2 No Keyboard Trap (Level A)
- 2.1.3 Keyboard (No Exception) (Level AAA)
- 2.1.4 Character Key Shortcuts (Level A)
Guideline 2.2 Enough Time
Provide users enough time to read and use content.
Not everyone is able to complete a task in a short amount of time. For example, someone who finds reading difficult may need more time to read instructions, someone with a physical disability may take longer to move through the content, and aggressive time limits may put someone with Anxiety Disorder under so much pressure they're unable to complete the task.
There are 6 SC under Guideline 2.2 Enough Time:
- 2.2.1 Timing Adjustable (Level A)
- 2.2.2 Pause, Stop, Hide (Level A)
- 2.2.3 No Timing (Level AAA)
- 2.2.4 Interruptions (Level AAA)
- 2.2.5 Re-authenticating (Level AAA)
- 2.2.6 Timeouts (Level AAA)
Guideline 2.3 Seizures and Physical Reactions
Do not design content in a way that is known to cause seizures or physical reactions.
Seizures are often serious and sometimes life-threatening so it is vital that content does not trigger them. For example, a seizure can be triggered in someone with Photo-sensitive Epilepsy if content flashes more than 3 times a second. Other physical reactions like dizziness and nausea can be triggered by moving or animated content particularly if it uses a parallax effect.
There are 3 SC under Guideline 2.3 Seizures and Physical Reactions:
- 2.3.1 Three Flashes or Below Threshold (Level A)
- 2.3.2 Three Flashes (Level AAA)
- 2.3.3 Animation from Interactions (Level AAA)
Guideline 2.4 Navigable
Provide ways to help users navigate, find content, and determine where they are.
People can find it difficult to navigate web content or to be sure of where they are. For example, someone with a cognitive disability that affects memory may use the page title to remind themselves where they are, a sighted keyboard user will depend on a visible indicator that tells them where their keyboard is currently focused, and a screen reader user will find links easier to use if the link text makes it clear where the link leads.
There are 10 SC under Guideline 2.4 Navigable:
- 2.4.1 Bypass Blocks (Level A)
- 2.4.2 Page Titled (Level A)
- 2.4.3 Focus Order (Level A)
- 2.4.4 Link Purpose (In Context) (Level A)
- 2.4.5 Multiple Ways (Level A)
- 2.4.6 Headings and Labels (Level AA)
- 2.4.7 Focus Visible (Level AA)
- 2.4.8 Location (Level AAA)
- 2.4.9 Link Purpose (Link Only) (Level AAA)
- 2.4.10 Section Headings (Level AAA)
Guideline 2.5 Input Modalities
Make it easier for users to operate functionality through various inputs beyond keyboard.
As well as the keyboard, people will use touch-screen devices and voice recognition as alternatives to using a mouse or trackpad. For example, making sure links and buttons have visible labels will help voice recognition users target them more accurately, not triggering actions the moment someone places a finger on a touch-screen will help prevent people with dexterity problems doing things unintentionally, and offering alternative ways to complete tasks that require multi-touch gestures is helpful to anyone unable to use their own fingers.
There are 6 SC under Guideline 2.5 Input Modalities:
- 2.5.1 Pointer Gestures (Level A)
- 2.5.2 Pointer Cancellation (Level A)
- 2.5.3 Label in Name (Level A)
- 2.5.4 Motion Actuation (Level A)
- 2.5.5 Target Size (Level AAA)
- 2.5.6 Concurrent Input Mechanisms (Level AAA)
Guideline 3.1 Readable
Make text content readable and understandable.
Not everyone finds text easy to read and understand. For example, someone who finds reading difficult may find it helpful if the meaning of unusual words is explained, or someone with a learning disability will find simple content easier to understand.
There are 6 SC under Guideline 3.1 Readable:
- 3.1.1 Language of Page (Level A)
- 3.1.2 Language of Parts (Level AA)
- 3.1.3 Unusual Words (Level AAA)
- 3.1.4 Abbreviations (Level AAA)
- 3.1.5 Reading Level (Level AAA)
- 3.1.6 Pronunciation (Level AAA)
Guideline 3.2 Predictable
Make Web pages appear and operate in predictable ways.
Most people find content easier to use when it looks familiar and behaves consistently. For example, putting things like the logo and navigation in the same place on every page helps screen magnification users orient themselves, and using the same labels for links and buttons that do the same thing helps people with cognitive disabilities correctly identify them.
There are 5 SC under Guideline 3.2 Predictable:
- 3.2.1 On Focus (Level A)
- 3.2.2 On Input (Level A)
- 3.2.3 Consistent Navigation (Level AA)
- 3.2.4 Consistent Identification (Level AA)
- 3.2.5 Change on Request (Level AAA)
Guideline 3.3 Input Assistance
Help users avoid and correct mistakes.
Nobody wants to make mistakes but avoiding mistakes or correcting them if they happen can be difficult for some people. For example, letting people review their answers before they submit a form that relates to a financial or legal agreement helps people with all disabilities avoid sending the wrong information, and presenting error messages as text means that people who cannot see warning colours or symbols know the errors are there.
There are 6 SC under Guideline 3.3.3 Input Assistance:
- 3.3.1 Error Identification (Level A)
- 3.3.2 Labels or Instructions (Level A)
- 3.3.3 Error Suggestion (Level AA)
- 3.3.4 Error Prevention (Legal, Financial, Data) (Level AA)
- 3.3.5 Help (Level AAA)
- 3.3.6 Error Prevention (All) (Level AAA)
Guideline 4.1 Compatible
Maximize compatibility with current and future user agents, including assistive technologies.
Writing code in ways that support a range of different devices and technologies makes content more reliable. For example, writing HTML that avoids errors known to cause problems for assistive technologies like screen readers and voice recognition software, and making sure that custom components and notifications are created in ways that include all the accessibility information needed by people who use assistive technologies.
There are 3 SC under Guideline 4.1 Compatible:
Each WCAG SC is assigned a conformance level: Level A, Level AA or Level AAA. In WCAG 2.1 there are:
- 30 Level A SC
- 20 Level AA SC
- 28 Level AAA SC
Level A is the most basic level of accessibility. When a website meets all Level A SC it has a good foundation of accessibility in place but it will still put obstacles in the way of many disabled people.
Level AA can only be achieved once Level A has been met. It is the level of accessibility referenced in many laws and policies around the world. When a website meets all Level A and Level AA SC it will be accessible to people with many different disabilities.
Level AAA is the highest level, and like Level AA it builds on top of the levels before it. Level AAA SC should be met wherever possible, but it is not expected that an entire website will meet Level AAA because the SC are only applicable in some circumstances. WCAG includes this note:
It is not recommended that Level AAA conformance be required as a general policy for entire sites because it is not possible to satisfy all Level AAA Success Criteria for some content.
It is worth noting that not all SC apply all of the time, no matter which level they're assigned. For example, if the website contains no multimedia content then none of the SC under Guideline 1.2 Time-based Media will apply.
The principles, guidelines and SC in WCAG are relevant to every part of a website or product created using web technologies. This includes the design, code, content and functionality, and it means that every member of a production team should be familiar with WCAG as a matter of course.Updated: 28 June, 2022
We like to listen. If you have a project, product, problem, or idea that you want to discuss, get in touch!