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.

Text can be rendered in a visual, oral or tactile way. Even by any combination of them. So text information can be presented and manipulated in whatever form best meets the user needs. For example, a blind person can understand a picture if her browsers reads aloud the text alternative. Or a deaf person can understand an audio file if there is a text alternative on the screen.

Criterion 1.1.1. Non-text Content

All “non-text content” that is presented to the user has a “text alternative” that serves the equivalent purpose (Level A)

Examples

  • Data charts: Provide a short label (e.g. “Weather records in Spain from 1909 to 2009″); a longer description with a high-level summary of the data, trends and implications (e.g. “Timeline shows the rising of the temperature while the rain is descending. Most remarkable data are…”); and if possible and practical, the data in a table.
  • Audio recordings: Step 1. Text inside the link describes its content (e.g. “Barack Obama’s speech at the UN. May 2009.”). Step 2. Immediately after that, provide a link to a text transcript. If there are two or more speakers, identify when is speaking each one, just as applause, laughter, etc.
  • Sound effects: Provide text indicating what it means (e.g. an error fulfilling a form)
  • Animations that illustrate a subject: Make sure that the text alternative provide the full explanation, the animation must be a complement.
  • Live Web-cams: Provide a short text that identify the camera and when how often it reloads the image.
  • Photographs and content images: Provide an alternative text that describes them and their context (the old way “alt” and “longdesc” is ok)
  • Thumbnail images with links : Provide an “alt” with the text you should include if no image is given
  • Image maps : Provide an “alt” for the image, including its interactive purpose (e.g. “Europe Map. Select the country you want to travel.”. Each image map area should include an alt.

Exceptions

  • Controls, Input: If non-text content is a control or accepts user input, provide a “name” that describes its purpose. (Guideline 4.1)
  • Time-Based Media: Provide text alternatives that gives descriptive identification of the non-text content. (Guideline 1.2)
  • Live Audio-only and live video-only content: It is more difficult to provide text alternatives that provide equivalent information as live audio-only and live video-only content. For these types of non-text content, text alternatives provide a descriptive label.
  • Tests: If non-text content is a test or exercise that would be invalid if presented in text, then text alternatives at least provide descriptive identification of the non-text content.
  • Specific sensory experience: If you have used a non-text content to create a specific sensory experience, provide a description and it purpose.
  • Decoration, Formatting, Invisible: WCAG Samurais, repeat with me: WTF???. Although CSS is strongly recommended, you are allowed to use invisible images to format text or smoothing corners. Just implement them in a way that they can be ignored by assistive technology (alt=”").
  • CAPTCHA: Use different output modes for different types of sensory perception are provided to accommodate different disabilities. For example, provide 2 or more modalities of CAPTCHAs, a human customer service representative or not requiring CAPTCHAs for authorized users.

How to. Mandatory techniques

Short text alternatives
  • Use alt attributes on images used as submit buttons
  • Combine adjacent image and text links for the same resource
  • Use alt attributes on img elements
  • Provide text alternatives on applet elements
  • Use the body of the object element
  • Provide text alternatives for the area elements of image maps
  • Provide text alternatives for ASCII art, emoticons, and leetspeak
  • Provide link text that describes the purpose of a link for anchor elements
  • Use a text alternative on one item within a group of images that describes all items in the group
Long text alternative
  • Use longdesc
  • Use the body of the object element

Additional, Advisory Techniques

General Techniques for Informative Non-Text Content
  • Identify informative non-text content
  • Keep short descriptions short
  • Describe images that include text
  • Provide a longer description of the non-text content where only a descriptive label is required using a technology-specific technique (for an accessibility-supported content technology) for long description listed above
  • Provide different sizes for non-text content when it cannot have an equivalent accessible alternative
  • Use server-side scripts to resize images of text
General Techniques for Live Non-Text Content
  • Link to textual information that provides comparable information (e.g., for a traffic Webcam, a municipality could provide a link to the text traffic report.)
HTML Techniques
  • Use noembed with embed
  • Write for browsers that do not support frames
  • Provide alternative content for iframe
  • Provide text and non-text alternatives for object
  • Not using long descriptions for iframe
  • Providing redundant text links for client-side image maps
CSS Techniques
  • Use CSS box rules instead of spacer images for layout design (CSS)
  • Use CSS background, :before or :after rules for decorative images instead of img elements
  • Display empty table cells
ARIA Techniques
  • Use the ARIA presentation role to indicate elements are purely presentational
Metadata Techniques
  • Use metadata to associate text transcriptions with a video
  • Use metadata to associate text transcriptions with audio-only content, e.g. providing, in metadata, URI(s) that points to an audio description and a text transcript of a video or audio file

Common Failures

  • Using alternative text that are not descriptive. E.g. alt=”spacer” , alt=”icon.jpg”, alt=”image2″…
  • Providing a text alternative that is not null for images that should be ignored
  • Omitting the alt-attribute for non-text content used for decorative purposes only in HTML
  • Not updating text alternatives when changes to non-text content occur, e.g. in a date chart.
  • Using CSS to include images that convey important information
  • Using text look-alikes to represent text without providing a text alternative
  • Using ASCII art without providing a text alternative
  • Omitting the alt attribute on img elements, area elements, and input elements of type “image”
  • Providing long description for non-text content that serve purpose or does not present the same information

More info

Provide alternatives for time-based media

You can use this guideline both for time-based media and synchronized media (with another format and/or time-based interactive components), including:

  • audio-only (AO)
  • video-only (VO)
  • audio-video (AV)
  • audio and/or video combined with interaction (AVI)

(Different success criterion apply for each one. It will be marked)

Examples

  • Audio Only (Prerecorded): Provide an alternative that presents equivalent information for prerecorded audio-only content.
  • Video Only (Prerecorded): Provide either an alternative for time-based media or an audio track to present equivalent information for prerecorded video-only content.
  • Audio in synchronized media (Prerecorded): Provide captions, and if possible, also sign language interpretation.
  • Synchronized media (Prerecorded): provide an audio description or media alternative
  • Audio content in synchronized media (Live): provide captions
  • Video content in synchronized media (Prerecorded): Provide audio description
  • When there is so much dialogue that audio description cannot fit into existing pauses in the dialogue, provide an alternative for time-based media (Level A)
  • Don’t forget to embed interactive elements (for example links) in the alternative
  • Sign language interpretation and extended audio description for synchronized media (Level AAA) are recommended where appropiate

More info

Criterion 1.2.1 [Audio-only and Video-only (Prerecorded)]

For prerecorded audio-only and prerecorded video-only media, the following are true, except when the audio or video is a media alternative for text and is clearly labeled as such: (Level A)

  • Prerecorded Audio-only: An alternative for time-based media is provided that presents equivalent information for prerecorded audio-only content.
  • Prerecorded Video-only: Either an alternative for time-based media or an audio track is provided that presents equivalent information for prerecorded video-only content.

How to. Mandatory techniques

  • Provide an alternative for time-based media for audio-only content (prerecorded audio-only)
  • Provide an alternative for time-based media for video-only content (prerecorded video-only)
  • Provide audio that describes the important video content and describing it as such

Additional, Advisory Techniques

  • Provide a transcript of a live audio only presentation after the fact
  • Link to textual information that provides comparable information (e.g., for a traffic Webcam, a municipality could provide a link to the text traffic report.)

Common Failures

  • Using alternative text that are not descriptive. E.g. alt=”spacer” , alt=”icon.jpg”, alt=”image”.
  • Providing long descriptions for non-text content that does not serve the same purpose or does not present the same information

Criterion 1.2.2 [Captions (Prerecorded)]

Captions are provided for all prerecorded audio content in synchronized media, except when the media is a media alternative for text and is clearly labeled as such. (Level A)

How to. Mandatory techniques

  • Providie open (always visible) captions
  • Provide closed captions using any readily available media format that has a video player that supports closed captioning
  • Provide closed captions using SMIL 1.0 (SMIL) or SMIL 2.0 (SMIL)

Additional, Advisory Techniques

  • Provide a note saying “No sound is used in this clip” for video-only clips
  • Use SMIL 1.0 or SMIL 2.0 to provide captions for all languages for which there are audio tracks

Common Failures

  • Captions omitting some dialogue or important sound effects
  • Providing synchronized media without captions when the synchronized media presents more information than is presented on the page
  • Not labeling a synchronized media alternative to text as an alternative

Criterion 1.2.3 [Audio Description or Media Alternative (Prerecorded)]

How to. Mandatory techniques

  • Provide an alternative for time based media linking to the alternative for time-based media immediately next to the non-text content; or using the body of the object element (HTML)
  • Provide a second, user-selectable, audio track that includes audio descriptions
  • Provide a version of a movie with audio descriptions using SMIL 1.0 or SMIL 2.0 or using any player that supports audio and video
  • Provide a movie with extended audio descriptions using SMIL 1.0 or SMIL 2.0 or using any player that supports audio and video

Additional, Advisory Techniques

  • Use SMIL 1.0 or SMIL 2.0 to provide audio description in multiple languages

Criterion 1.2.4 [Captions (Live)]

Captions are provided for all live audio content in synchronized media. (Level AA)

How to. Mandatory techniques

  • Create captions for live synchronized media and provide open (always visible) captions
  • Create captions for live synchronized media and closed captions using any readily available media format that has a video player that supports closed captioning
  • Create captions for live synchronized media and provide closed captions using SMIL 1.0 or SMIL 2.0

Criterion 1.2.5 [Audio Description (Prerecorded)]

Audio description is provided for all prerecorded video content in synchronized media. (Level AA)

How to. Mandatory techniques

  • Provide a second, user-selectable, audio track that includes audio descriptions
  • Providing a version of a movie with audio descriptions using SMIL 1.0 or SMIL 2.0 or using any player that supports audio and video
  • Provide a movie with extended audio descriptions using SMIL 1.0 or SMIL 2.0 or using any player that supports audio and video

Additional, Advisory Techniques

  • Provide audio description in multiple languages in SMIL 1.0 or SMIL 2.0
  • Provide audio description for live synchronized media

Criterion 1.2.6 [Sign Language (Prerecorded)]

How to. Mandatory techniques

  • Include a sign language interpreter in the video stream
  • Provide a synchronized video of the sign language interpreter that can be displayed in a different viewport or overlaid on the image by the player using SMIL 1.0 or SMIL 2.0

Additional, Advisory Techniques

  • Use metadata to associate sign language alternatives of a video to enable choice of sign language. E.g. provide, in metadata, URI(s) that point to several English sign language translations (ASL, SASL, BSL, Auslan, ISL, NZSL) of a Web page.

Criterion 1.2.7 [Extended Audio Description (Prerecorded)]

Where pauses in foreground audio are insufficient to allow audio descriptions to convey the sense of the video, extended audio description is provided for all prerecorded video content in synchronized media. (Level AAA)

How to. Mandatory techniques

  • Provide a movie with extended audio descriptions using SMIL 1.0 or SMIL 2.0 or using any player that supports audio and video

Additional, Advisory Techniques

  • Add extended audio description in multiple languages in SMIL 1.0 or SMIL 2.0

Criterion 1.2.8 [Media Alternative (Prerecorded)]

An alternative for time-based media is provided for all prerecorded synchronized media and for all prerecorded video-only media. (Level AAA)

How to. Mandatory techniques

If the content is prerecorded synchronized media:
  • Place a link to the alternative for time-based media immediately next to the non-text content OR
  • Link to the alternative using the body of the object element (HTML)
Situation B: If the content is prerecorded video-only:
  • Provide an alternative for time-based media for video-only content

Additional, Advisory Techniques

  • Use noembed with embed (HTML)
  • Provide a corrected script
  • Add detail to audio description

Common Failures

  • Not labeling a synchronized media alternative to text as an alternative

Criterion 1.2.9 [Audio-only (Live)]

An alternative for time-based media that presents equivalent information for live audio-only content is provided. (Level AAA)

How to. Mandatory techniques

  • Provide a link to a text transcript of a prepared statement or script if the script is followed
  • Provide text based alternatives for live audio-only content
  • Incorporate a live audio captioning service into a Web page

Additional, Advisory Techniques

  • Use metadata to associate text transcriptions with audio-only conten. E.g. provide, in metadata, URI(s) that point to several text transcripts (English, French, Dutch) of an audio file.

Create content that can be presented in different ways (for example simpler layout) without losing information or structure.

Your website audience has very different needs and preferences, so ensure that your content is available in a way that can be perceived by all users in different ways (visually, audibly, tactilely etc.).

If there is embedded information in a way that the structure and information cannot be rendered by the assistive technology, then it cannot be rendered in other formats as needed by the user. (e.g. text in an image).

WCAG 2 refers to structure as the way the parts of a Web page are organized in relation to each other; and the way a collection of Web pages is organized; and presentation as rendering of the content in a form that can be perceived by users.

Criterion 1.3.1 [Info and Relationships]

Information, structure, and relationships conveyed through presentation can be programmatically determined or are available in text. (Level A)

How to. Mandatory techniques

Situation A: The technology provides semantic structure to make information and relationships conveyed:
  • Use semantic elements to mark up structure AND use semantic markup to mark emphasized or special text (HTML)
  • Use text to convey information that is conveyed by variations in presentation of text
  • Separate information and structure from presentation to enable different presentations
  • Make information and relationships conveyed using:
    Web page structure
    • semantic markup whenever color cues are used
    • ol, ul and dl for lists (HTML)
    • h1-h6 to identify headings (HTML)
    • functions of the Document Object Model (DOM) to add content to a page (Scripting)
    Tables
    • table markup to present tabular information (HTML)
    • caption elements to associate data table captions with data tables (HTML)
    • the scope attribute to associate header cells and data cells in data tables (HTML)
    • the summary attribute of the table element to give an overview of data tables (HTML)
    • id and headers attributes to associate data cells with header cells in data tables (HTML)
    Forms
    • label elements to associate text labels with form controls (HTML)
    • the title attribute to identify form controls when the label element cannot be used (HTML)
    • a description for groups of form controls using fieldset and legend elements (HTML)
    • OPTGROUP to group OPTION elements inside a SELECT (HTML)
Situation B: The technology in use does NOT provide the semantic structure to make the information and relationships conveyed:
  • Use text to convey information that is conveyed by variations in presentation of text
  • Make information and relationships conveyed through presentation programmatically determinable or available in text using standard text formatting conventions for paragraphs, lists and headings (TXT)

Additional, Advisory Techniques

  • Use CSS to control visual presentation of text
  • Use CSS rather than tables for page layout
  • Position labels to maximize predictability of relationships
  • Use ARIA to provide a descriptive, programmatically determined label (ARIA)
  • Use ARIA to identify form fields as required
  • Provide labels for all form controls that do not have implicit labels
  • Organize a page using headings

Common Failures

  • using changes in text presentation to convey information without using the appropriate markup or text
  • insufficient information in DOM to determine one-to-one relationships (e.g., between labels with same id) in HTML
  • using white space characters to create multiple columns in plain text content
  • using white space characters to format tables in plain text content
  • using scripting events to emulate links in a way that is not programmatically determinable
  • using structural markup in a way that does not represent relationships in the content
  • using th elements, caption elements, or non-empty summary attributes in layout tables
  • using the pre element to markup tabular information
  • insufficient information in DOM to determine specific relationships in XML
  • using changes in text presentation to convey information without using the appropriate markup or text
  • association of label and user interface controls not being programmatically determinable
  • inserting non-decorative content by using :before and :after pseudo-elements and the ‘content’ property in CSS

Criterion 1.3.2 [Meaningful Sequence]

When the sequence in which content is presented affects its meaning, a correct reading sequence can be programmatically determined. (Level A)

How to. Mandatory techniques

  • Order the content in a meaningful sequence for all the content in the Web page
  • Mark sequences in the content as meaningful using one of the following techniques AND order the content in a meaningful sequence for those sequences:
    • Using a Unicode right-to-left mark (RLM) or left-to-right mark (LRM) to mix text direction inline (HTML)
    • Using the dir attribute on an inline element to resolve problems with nested directional runs (HTML)
    • Positioning content based on structural markup (CSS)
    • Using CSS letter-spacing to control spacing within a word (CSS)
  • Make the DOM order match the visual order (CSS)

Additional, Advisory Techniques

  • Use left-justified text for languages that are written left to right and right-justified text for languages that are written right-to-left
  • Provide a link to linearized rendering
  • Provide a style switcher between style sheets that affect presentation order

Common Failures

  • using white space characters to format tables in plain text content
  • using white space characters to create multiple columns in plain text content
  • using white space characters to control spacing within a word
  • using an HTML layout table that does not make sense when linearized
  • changing the meaning of content by positioning information with CSS

Criterion 1.3.3 [Sensory Characteristics]

Instructions provided for understanding and operating content do not rely solely on sensory characteristics of components such as shape, size, visual location, orientation, or sound. (Level A)

How to. Mandatory techniques

  • Provide textual identification of items that otherwise rely only on sensory information to be understood

Additional, Advisory Techniques

  • Use an image with a text alternative for graphical symbols instead of a Unicode font glyph with the desired graphical appearance but different meaning

Common Failures

  • Identifying content only by its shape or location
  • Using a graphical symbol alone to convey information

More Info

Make it easier for users to see and hear content including separating foreground from background.

This guideline is about making the default presentation as easy to perceive as possible to people with disabilities: it’s about contrast, not only the ‘colors’ for visual content, but also for the ‘voices’ on audio content.

Some good advices, but not required:

  • Use readable fonts
  • Text in images should be at least 14 points and has good contrast
  • Links and controls must be highlighted when they receive keyboard focus

Color

Criterion 1.4.1 [Use of Color]

Color is not used as the only visual means of conveying information, indicating an action, prompting a response, or distinguishing a visual element. (Level A)

How to. Mandatory techniques
Situation A: If the color of particular words, backgrounds, or other content is used to indicate information
  • Ensure that information conveyed by color differences is also available in text
  • Include a text cue whenever color cues are used
  • Ensure that additional visual cues are available when text color differences are used to convey information
  • Use a contrast ratio of 3:1 with surrounding text and providing additional visual cues on focus for links or controls where color alone is used to identify them (We will see how to calcultate this ratio
Situation B: If color is used within an image to convey information:
  • Use color and pattern
  • Ensure that information conveyed by color differences is also available in text
Additional, Advisory Techniques
  • Convey information redundantly using color
  • Use CSS to change the presentation of a user interface component when it receives focus
Common Failures
  • Having a text alternative that does not include information that is conveyed by color differences in the image
  • Creating links that are not visually evident without color vision
  • Identifying required or error fields using color differences only

Contrast

Criterion 1.4.3 [Contrast (Minimum)]

The visual presentation of text and images of text has a contrast ratio of at least 4.5:1, except for the following: (Level AA)

  • Large Text: Large-scale text and images of large-scale text have a contrast ratio of at least 3:1;
  • Incidental: Text or images of text that are part of an inactive user interface component, that are pure decoration, that are not visible to anyone, or that are part of a picture that contains significant other visual content, have no contrast requirement.
  • Logotypes: Text that is part of a logo or brand name has no minimum contrast requirement.

(Contrast formula will be explained in a separate post)

How to. Mandatory techniques
Situation A: text is less than 18 point if not bold and less than 14 point if bold
  • Ensure that a contrast ratio of at least 4.5:1 exists between text (and images of text) and background behind the text
  • Don’t specify background color, nor text color, and don’t use technology features that change those defaults
  • Provide a control with a sufficient contrast ratio that allows users to switch to a presentation that uses sufficient contrast
Situation B: text is as least 18 point if not bold and at least 14 point if bold
  • Ensure that a contrast ratio of at least 3:1 exists between text (and images of text) and background behind the text
  • Don’t specify background color, nor text color, and don’t use technology features that change those defaults
  • Provide a control with a sufficient contrast ratio that allows users to switch to a presentation that uses sufficient contrast
Additional, Advisory Techniques
  • Use a technology that has commonly-available user agents that can change the foreground and background of blocks of text
  • Use a higher contrast value for text that is over a patterned background
  • Use Unicode text and style sheets instead of images of text
  • Use a higher contrast values for lines in diagrams
  • Use greater contrast level for red-black text/background combinations
  • Use colors that are composed predominantly of mid spectral components for the light and spectral extremes (blue and red wavelengths) for the dark
  • Use a light pastel background rather than a white background behind black text to create sufficient but not extreme contrast
  • Make icons using simple line drawings that meet the contrast provisions for text
  • Provide sufficient color contrast in graphs and charts
  • Use a 3:1 contrast ratio or higher as the default presentation
  • Provide sufficient color contrast for empty text fields
Common Failures
  • specifying foreground colors without specifying background colors or vice versa
  • using background images that do not provide sufficient contrast with foreground text (or images of text)

Criterion 1.4.6 [Contrast (Enhanced)]

The visual presentation of text and images of text has a contrast ratio of at least 7:1, except for the following: (Level AAA)

  • Large Text: Large-scale text and images of large-scale text have a contrast ratio of at least 4.5:1;
  • Incidental: Text or images of text that are part of an inactive user interface component, that are pure decoration, that are not visible to anyone, or that are part of a picture that contains significant other visual content, have no contrast requirement.
  • Logotypes: Text that is part of a logo or brand name has no minimum contrast requirement.
How to. Mandatory techniques
Situation A: text is less than 18 point if not bold and less than 14 point if bold
  • Ensure that a contrast ratio of at least 7:1 exists between text (and images of text) and background behind the text
  • Don’t specify background color, not specifying text color, and not using technology features that change those defaults
  • Provide a control with a sufficient contrast ratio that allows users to switch to a presentation that uses sufficient contrast
Situation B: text is as least 18 point if not bold and at least 14 point if bold
  • Ensure that a contrast ratio of at least 4.5:1 exists between text (and images of text) and background behind the text
  • Don’t specify background color, not specifying text color, and not using technology features that change those defaults
  • Provide a control with a sufficient contrast ratio that allows users to switch to a presentation that uses sufficient contrast
Additional, Advisory Techniques
  • Use a technology that has commonly-available user agents that can change the foreground and background of blocks of text
  • Use a higher contrast value for text that is over a patterned background
  • Use Unicode text and style sheets instead of images of text
  • Using a higher contrast values for lines in diagrams
  • Use greater contrast level for red-black text/background combinations
  • Use colors that are composed predominantly of mid spectral components for the light and spectral extremes (blue and red wavelengths) for the dark
  • Use a light pastel background rather than a white background behind black text to create sufficient but not extreme contrast
  • Make icons using simple line drawings that meet the contrast provisions for text
  • Provide sufficient color contrast in graphs and charts
  • Use a 3:1 contrast ratio or higher as the default presentation
  • Provide sufficient color contrast for empty text fields
Common Failures
  • Specifying foreground colors without specifying background colors or vice versa
  • Using background images that do not provide sufficient contrast with foreground text (or images of text)

Text and visual presentation

Criterion 1.4.4 [Resize text]

Except for captions and images of text, text can be resized without assistive technology up to 200 percent without loss of content or functionality. (Level AA)

How to. Mandatory techniques
  • Use a technology that has commonly-available user agents that support zoom
  • Ensure that text containers resize when the text resizes AND use measurements that are relative to other measurements in the content by using em units for text containers and percent, named or em units for font sizes. Also, you can resize text containers by liquid layouts or calculating calculate size and position in a way that scales with text size
  • Provide controls on the Web page that allow users to incrementally change the size of all text on the page up to 200 percent
  • Ensure that there is no loss of content or functionality when the text resizes and text containers do not resize
Additional, Advisory Techniques
  • Provide large fonts by default
  • Use page-percent for container sizes
  • Avoid scaling font sizes smaller than the user-agent default
  • Avoid justified text
  • Provide sufficient inter-line and inter-column spacing
  • Provide different sizes for non-text content when it cannot have an equivalent accessible alternative
  • Avoid the use of text in raster images
  • Use server-side scripts to resize images of text
  • Scale form elements which contain text
  • Ensure that text in raster images is at least 18pt
  • Scale text down to 50%
  • UsE relative measurements to set column widths so that lines can average 80 characters or less when the browser is resized
  • Use CSS to control visual presentation of text
  • Provide a mechanism to allow captions to be enlarged
Common Failures
  • If you resize visually rendered text up to 200 percent causes the text, image or controls are clipped, truncated or obscured
  • If text-based form controls do not resize when visually rendered text is resized up to 200%

Criterion 1.4.8 [Visual Presentation]

For the visual presentation of blocks of text, a mechanism is available to achieve the following: (Level AAA)

  1. Foreground and background colors can be selected by the user.
  2. Width is no more than 80 characters or glyphs (40 if CJK).
  3. Text is not justified (aligned to both the left and the right margins).
  4. Line spacing (leading) is at least space-and-a-half within paragraphs, and paragraph spacing is at least 1.5 times larger than the line spacing.
  5. Text can be resized without assistive technology up to 200 percent in a way that does not require the user to scroll horizontally to read a line of text on a full-screen window.
How to. Mandatory techniques
Ensure foreground and background colors can be selected by the user

Choose one of the following:

  • Specify text and background colors of secondary content such as banners, features and navigation in CSS while not specifying text and background colors of the main content (CSS)
  • Specify borders and layout in CSS to delineate areas of a Web page while not specifying text and text-background colors (CSS)
  • Use a technology that has commonly-available user agents that can change the foreground and background of blocks of text
  • Don’t specify background color, nor specifying text color, and not use technology features that change those defaults
  • Providing a multi color selection tool on the page for foreground and background colors
Ensure width is no more than 80 characters or glyphs (40 if they are Chinese, Japanese and Korean characters)

Choose one of the following:

  • Don’t interfere with the user agent’s reflow of text as the viewing window is narrowed
  • Using relative measurements to set column widths so that lines can average 80 characters or less when the browser is resized
Ensure text is not justified (aligned to both the left and the right margins)

Choose one of the following:

  • Specify alignment either to the left OR right in CSS (CSS)
  • Provide a mechanism to remove full justification of text
  • Align text on only one side
Ensure line spacing (leading) is at least space-and-a-half within paragraphs, and paragraph spacing is at least 1.5 times larger than the line spacing

Choose one of the following:

  • Provide a button on the page to increase line spaces and paragraph spaces
  • Specify line spacing in CSS
Ensure text can be resized without assistive technology up to 200 percent in a way that does not require the user to scroll horizontally to read a line of text on a full-screen window

Choose one of the following:

  • Don’t interfere with the user agent’s reflow of text as the viewing window is narrowed
  • Use liquid layout and measurements that are relative to other measurements in the content by using percent, named font or em units for font sizes or percentage values in CSS for container sizes or calculating size and position in a way that scales with text size (Scripting)
  • Provide options within the content to switch to a layout that does not require the user to scroll horizontally to read a line of text
Additional, Advisory Techniques
  • Use a hover effect to highlight a paragraph, list items, or table cells (HTML, CSS)
  • Present text in sans serif font or providing a mechanism to achieve this (CSS)
  • Use vertical (bulleted or numbered) lists rather than inline lists
  • Use upper and lower case according to the spelling conventions of the text language
  • Provide large fonts by default
  • Avoid the use of text in raster images
  • Avoid scaling font sizes smaller than the user-agent default
  • Provid sufficient inter-column spacing
  • Avoid centrally aligned text
  • Avoid chunks of italic text
  • Avoid overuse of different styles on individual pages and in sites
  • Make links visually distinct
  • Provide expandable bullets
  • Show/hide bullet points
  • Put an em-space or two spaces after sentences
Common Failures
  • Specifying foreground colors without specifying background colors or vice versa
  • Using text that is justified (aligned to both the left and the right margins)

Images of Text

Criterion 1.4.5 [Images of Text]

If the technologies being used can achieve the visual presentation, text is used to convey information rather than images of text except for the following: (Level AA)

  • Customizable: The image of text can be visually customized to the user’s requirements;
  • Essential: A particular presentation of text is essential to the information being conveyed.

Note: Logotypes (text that is part of a logo or brand name) are considered essential.

How to. Mandatory techniques
  • Use CSS to control visual presentation of text
  • Use CSS to replace text with images of text and providing user interface controls to switch
  • Separate information and structure from presentation to enable different presentations
Additional, Advisory Techniques
  • Identify informative non-text content
  • Use percent, named or em units for font sizes
  • Use CSS letter-spacing to control spacing within a word
  • Position content based on structural markup
  • Avoid applying text styling to text characters within a word

Criterion 1.4.9 [Images of Text (No Exception)]

Images of text are only used for pure decoration or where a particular presentation of text is essential to the information being conveyed. (Level AAA)
Note: Logotypes (text that is part of a logo or brand name) are considered essential.

How to. Mandatory techniques
  • Use CSS to control visual presentation of text
  • Use CSS to replace text with images of text and providing user interface controls to switch
  • Separate information and structure from presentation to enable different presentations
Additional, Advisory Techniques
  • Use server-side scripts to resize images of text
  • Use percent, named or em units for font sizes
  • Use CSS letter-spacing to control spacing within a word
  • Position content based on structural markup
  • Avoid applying text styling to text characters within a word

Audio

Criterion 1.4.2 [Audio Control]

If any audio on a Web page plays automatically for more than 3 seconds, either a mechanism is available to pause or stop the audio, or a mechanism is available to control audio volume independently from the overall system volume level. (Level A)
Note: Since any content that does not meet this success criterion can interfere with a user’s ability to use the whole page, all content on the Web page (whether or not it is used to meet other success criteria) must meet this success criterion. See Conformance Requirement 5: Non-Interference.

How to. Mandatory techniques
  • Play a sound that turns off automatically within three seconds
  • Provide a control near the beginning of the Web page that turns off sounds that play automatically
  • Play sounds only on user request
Additional, Advisory Techniques
  • Provide a site-wide preference to turn off audio in addition to providing a control near the top of the Web page that turns off sounds that play automatically
Common Failures
  • Playing a sound longer than 3 seconds where there is no mechanism to turn it off

Criterion 1.4.7 [Low or No Background Audio]

Low or No Background Audio: For prerecorded audio-only content that (1) contains primarily speech in the foreground, (2) is not an audio CAPTCHA or audio logo, and (3) is not vocalization intended to be primarily musical expression such as singing or rapping, at least one of the following is true: (Level AAA)

  • No Background: The audio does not contain background sounds.
  • Turn Off: The background sounds can be turned off.
  • 20 dB: The background sounds are at least 20 decibels lower than the foreground speech content, with the exception of occasional sounds that last for only one or two seconds.

Note: Per the definition of “decibel,” background sound that meets this requirement will be approximately four times quieter than the foreground speech content.

How to. Mandatory techniques
  • Mix audio files so that non-speech sounds are at least 20 decibels lower than the speech audio content
Additional, Advisory Techniques
  • Providing a way for users to adjust auditory levels of foreground and background sound independently

More info