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.