Skip to content
Back to log

Fundamentals of web accessibility with WCAG

Chainabit's Chao · · 7 min read

In short

The four principles of WCAG address how web content is perceived, operated, and understood, and its compatibility with different tools. Conformance levels include conditions concerning the scope of pages and processes.

W3C's WCAG standard addresses making web content more accessible to people with disabilities. This includes visual, auditory, physical, speech, cognitive, language, learning, and neurological disabilities. The success criteria are written as testable statements and are not tied to a specific technology.

WCAG is built on four principles: perceivable, operable, understandable, and robust. The guidelines under the principles define general goals. The success criteria are testable. The guidelines themselves are not testable; they provide a framework for understanding the success criteria.

W3C Web Accessibility Initiative explains web accessibility through components that work together. Web content includes markup and applications as well as text, images, forms, and multimedia. Browsers and other user agent software provide access to content. Authoring tools are used to create content.

Perceivable content

Perceivability means that information and user interface components are presented in ways that users can perceive. According to W3C, text alternatives are equivalents for non-text content. Short equivalents for images, icons, buttons, and graphics, as well as descriptions of data presented in charts and diagrams, fall within this scope.

A text alternative conveys the purpose of an image or function. W3C gives “search” as an example for a search button, instead of describing the appearance of a magnifying glass. Labels for form controls and other interface components are also among text alternatives.

Text alternatives can be read aloud, enlarged, or displayed on braille devices. According to W3C, they also function as labels for controls when navigating by keyboard and voice recognition. They can also be used to identify audio and video files.

WCAG's non-text content criterion requires content presented to the user to have a text alternative that serves an equivalent purpose. There are specific exceptions. Content used only for decoration or not presented to users is implemented in a way that assistive technology can ignore it. A control or non-text content that accepts input has a name that describes its purpose.

Audio, video, and adaptable presentation

W3C gives transcripts and captions as examples of alternatives for audio content. Audio description conveys important visual details in video. Sign language interpretation can also be provided for audio content, including relevant auditory experiences. Transcripts containing auditory and visual information in the correct sequence make it easier to produce captions and audio descriptions.

For content to be presented in different ways, headings, lists, tables, input fields, and content structures need to be marked up appropriately. W3C also states that the sequence of information and instructions should be independent of presentation, and that browsers and assistive technologies should provide settings to personalize presentation.

This structure allows content to be read aloud, enlarged, or adapted to different needs. W3C's examples include custom color combinations and text sizes. The same approach also supports the automatic creation of page outlines and summaries.

Features that make content easier to see and hear

According to W3C, color is not used as the only way to convey information or identify content. Sufficient contrast between default foreground and background colors is also a feature of distinguishable content. Preventing information loss when text is enlarged or text spacing is changed, and allowing text to reflow in small windows, are also part of this area.

For audio content, this includes allowing users to pause, stop, or adjust the volume of audio playing on a site. Low background audio or the ability to turn it off is also among W3C's examples. Automatically playing audio can interfere with tools that read text aloud or with hearing assistance devices.

Operable interface and navigation

W3C draws attention to people who do not use a mouse and rely on a keyboard to interact with the web. This includes keyboard access to functions, including form controls, input fields, and other interface components. Functions that can be used with a mouse also being usable with a keyboard, and keyboard focus not becoming trapped in a section of content, are features listed by W3C.

Keyboard access also helps people who use alternative keyboards with ergonomic layouts or on-screen keyboards, and switch devices. W3C also includes people who use voice recognition through the keyboard interface to operate websites and dictate text.

Turn this insight into action.

Use the mobile app to continue with guided workflows.

Navigation includes clear page titles and sections organized with descriptive headings. Having more than one way to reach relevant pages in a set of pages, and informing users of their current location among related pages, are also among W3C's examples.

Ways to skip blocks of content repeated across multiple pages also fall within navigation. Keyboard focus needs to be visible, and the focus order needs to follow a meaningful sequence. W3C also addresses making the purpose of a link understandable. Some users find the pages they are looking for through hierarchical structures such as menus, while others use a search function.

Time, movement, and different inputs

Some people need more time to type text, understand instructions, or use controls. W3C's examples of sufficient time include mechanisms to stop, extend, or adjust time limits, except where they are necessary. Pausing, stopping, or hiding moving, blinking, or scrolling content is also among the examples.

Re-authenticating without losing data when a session expires is another mechanism listed by W3C. Postponing or suppressing interruptions, except where they are necessary, is also among the examples of providing sufficient time.

Input methods other than a keyboard include touch, voice recognition, and gestures. W3C addresses alternatives to gestures that require fine movements or dexterity, where the alternatives do not require high levels of dexterity. Components that prevent accidental activation, such as an undo function, are also included.

Matching labels shown to users with the corresponding object names in code supports voice activation. W3C's other examples include allowing functions activated by motion to also be activated through interface components, and making buttons and links large enough to use by touch.

According to W3C, content that flashes at certain rates or in certain patterns can cause photosensitive reactions, including seizures. Animation and moving content can also cause discomfort or physical reactions. W3C lists mechanisms to turn off animations when they are not necessary among the examples in this area.

Understandability and compatibility

W3C addresses identifying the primary language of a page and passages of text in a different language under readability. Providing definitions for unusual words, expressions, idioms, and abbreviations is also among the examples. Identifying language information helps software, including assistive technologies, process and read text aloud.

In predictable interfaces, navigation mechanisms repeated across multiple pages appear in the same place each time. Repeated interface components carry the same labels. W3C also lists important changes on a page not occurring without the user's consent among its examples of predictability.

In forms, descriptive instructions, error messages, and suggestions for correction are examples that help users avoid and correct errors. Context-sensitive help for more complex functions and interactions is also included. The opportunity to review, correct, or reverse submissions when necessary is also among W3C's examples.

Robust content is compatible with different browsers, assistive technologies, and other user agent software. W3C addresses the reliable interpretation of markup in this area. Providing a name, role, and value for non-standard interface components is also among the examples; these include buttons and input fields created with script.

Scope and limits of WCAG conformance

WCAG defines three levels of conformance: A, AA, and AAA. For Level A, the page must meet all Level A success criteria or provide a conforming alternate version. For AA, the A and AA criteria are met, and for AAA, the criteria at all three levels are met; a relevant conforming alternate version is also an option at each level.

According to W3C, conformance applies to the entire page. Conformance cannot be achieved by excluding part of a page. If a page is automatically presented in different forms for different screen sizes, each of those forms must conform or have a conforming alternate version.

If a process is presented through a sequence of pages consisting of steps that must be completed, all pages in the sequence must conform at the specified level or higher. If any page in the sequence does not meet this condition, the process cannot be considered conformant at that level.

Although WCAG covers a broad range of needs, it does not meet all the needs of people with disabilities of every type, degree, and combination. W3C states that even content conforming to Level AAA may not be accessible to everyone, particularly in cognitive, language, and learning areas. It also does not recommend requiring AAA conformance as a general policy for all sites, because it is not possible to meet all AAA success criteria for some content.

Ready to start?

Download the app and continue from your phone.

End of Entry