Techniques for WCAG 2.0

On this page:

-

# H53: Using the body of the `object` element

## Applicability

Documents that load media with the `object` element.

This technique relates to:

- Success Criterion 1.1.1 (Non-text Content)
  - How to Meet 1.1.1 (Non-text Content)
  - Understanding Success Criterion 1.1.1 (Non-text Content)
- Success Criterion 1.2.3 (Audio Description or Media Alternative (Prerecorded))
  - How to Meet 1.2.3 (Audio Description or Media Alternative (Prerecorded))
  - Understanding Success Criterion 1.2.3 (Audio Description or Media Alternative (Prerecorded))
- Success Criterion 1.2.8 (Media Alternative (Prerecorded))
  - How to Meet 1.2.8 (Media Alternative (Prerecorded))
  - Understanding Success Criterion 1.2.8 (Media Alternative (Prerecorded))

## User Agent and Assistive Technology Support Notes

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

## Description

The objective of this technique is to provide a text alternative for content rendered using the object element. The body of the object element can be used to provide a complete text alternative for the object or may contain additional non-text content with text alternatives.

## Examples

### Example 1: An object includes a long description that describes it

Example Code:

     <object classid="http://www.example.com/analogclock.py">
      <p>Here is some text that describes the object and its operation.</p>
    </object>

### Example 2: An object includes non-text content with a text alternative

Example Code:

    <object classid="http://www.example.com/animatedlogo.py">
      <img src="staticlogo.gif" alt="Company Name" />
    </object>

### Example 3: The image object has content that provides a brief description of the function of the image

Example Code:

    <object data="companylogo.gif" type="image/gif">
      <p>Company Name</p>
    </object>

## Resources

Resources are for information purposes only, no endorsement implied.

- HTML 4.01 OBJECT element

- Object Paranoia

## Related Techniques

- G92: Providing long description for non-text content that serves the same purpose and presents the same information
- H46: Using noembed with embed

## Tests

### Procedure

1. Check that the body of each `object` element contains a text alternative for the object.

### Expected Results

- #1 is true.

- Top
- Contents
- Intro
- Previous: Technique H51
- Next: Technique H54