Techniques for WCAG 2.0

On this page:

-

# 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:

- 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)

## 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

## Related Techniques

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

## Tests

No tests available for this technique.

- Top
- Contents
- Intro
- Previous: Technique H25
- Next: Technique H28