Summary
Providing a text alternative for embedded objects ensure the content is accessible regardless of support for the format.
Techniques
-
Provide an HTML alternative or description of the object in the body of the
object
. [[WCAG-1.1.1]] and [[WCAG-1.2.3]]
Examples
Explanation
The object
element allows the embedding of multimedia content in HTML documents. Its
use for audio and video content is generally discouraged, however, as it lacks the accessible playback
controls provided by the audio
and video
elements.
Do not include media alternatives, like transcripts, in the body of an object
. If the
audio or video format can be played, users who need access to the transcript will not have access
to it.
As the object
element is most often used to embed non-HTML content, a fallback needs to
be provided for users who cannot access the content in its native form. The common way to achieve this
is to provide an HTML equivalent within the body of the object
element. This content is
presented to the user if the specified format is not supported.
Related Links
- MDN — <object>
- HTML — The object element