Skip to main content

The <video> Element

As defined in the HTML Living Standard, the <video> element is used to embed video content in a document. It provides a native interface for playback, removing the need for proprietary plugins.

Accessible Implementation:

(Note: Captions are essential for accessibility.)

<video controls width="640" height="360">
  <source src="video.webm" type="video/webm">
  <source src="video.mp4" type="video/mp4">
  <track kind="captions" src="captions.vtt" srclang="en" label="English">
  Your browser does not support the video tag.
</video>
View HTML Living Standard: The video element

Accessibility: Captions and Transcripts

Video content is multi-sensory. To be accessible, it must be perceivable by users who are deaf or hard of hearing, and users who are blind or have low vision.

WCAG Requirement: Captions (Prerecorded)

Success Criterion 1.2.2 (Level A): Captions are provided for all prerecorded audio content in synchronized media.

The <track> element is used to add timed text tracks (captions, subtitles, or descriptions) to the video. This is not optional; it is a core requirement for AA compliance.

Understand SC 1.2.2: Captions (Prerecorded)

Critical Usage Rules

A11y Tip: Audio Descriptions

For videos with important visual information that isn't conveyed in the audio, provide an Audio Description track or a descriptive text transcript.