Techniques for WCAG 2.0

Skip to Content (Press Enter)

-

H27: Providing text and non-text alternatives for object

Applicability

Documents that load media with the object element, when the media format is not an accessibility-supported content technology.

This technique relates to:

User Agent and Assistive Technology Support Notes

This technique is not supported well by assistive technologies and cross-browser support is irregular.

Description

If object is used, provide a text alternative in the content of the element:

Examples

Example 1

This example shows a text alternative for a Java applet using the object element.

Example Code:

<object classid="java:Press.class" width="500" height="500">
  As temperature increases, the molecules in the balloon...
</object>     

Example 2

This example takes advantage of the fact the object elements may be nested to provide for alternative representations of information.

Example Code:

<object classid="java:Press.class" width="500" height="500">
  <object data="Pressure.mpeg" type="video/mpeg">
    <object data="Pressure.gif" type="image/gif">
      As temperature increases, the molecules in the balloon...
    </object>
  </object>
</object>  

Resources

Resources are for information purposes only, no endorsement implied.

HTML 4.01 OBJECT element

Tests

No tests available for this technique.

Techniques are Informative

Techniques are informative—that means they are not required. The basis for determining conformance to WCAG 2.0 is the success criteria from the WCAG 2.0 standard—not the techniques. For important information about techniques, please see the Understanding Techniques for WCAG Success Criteria section of Understanding WCAG 2.0.