Techniques for WCAG 2.0

Skip to Content (Press Enter)

-

F38: Failure of Success Criterion 1.1.1 due to omitting the alt-attribute for non-text content used for decorative purposes only in HTML

Applicability

Applies to HTML 4.x and XHTML 1.x.

This failure relates to:

Description

This describes a failure condition for text alternatives for images that should be ignored by AT. If there is no alt attribute at all assistive technologies are not able to ignore the non-text content. The alt attribute must be proved and have a null value (i.e. alt="" or alt=" ") to avoid a failure of this Success Criterion.

Note: Although alt=" " is valid, alt="" is recommended.

Examples

Resources

No resources available for this technique.

(none currently listed)

Tests

Procedure

  1. Identify any img and applet elements that are used for purely decorative content;

  2. Check that the alt attribute for these elements exists.

  3. Check that the alt attribute for these elements is null.

Expected Results