Skip to content
1.2.2 · Level A · WCAG 2.0 · Perceivable → Time-based Media

Captions (Prerecorded)

Prerecorded video with audio has captions — synchronised text for the dialogue and for sounds that matter, such as a doorbell or a name being called.

Why it matters

A deaf or hard-of-hearing viewer gets nothing from the soundtrack. Captions also serve anyone watching with the sound off, which on a phone in public is most people.

Automatically detected

axe-core flags a <video> element with no captions track. It cannot tell whether a track that exists is accurate, complete, or in sync — that needs a person who has watched the video.

Related axe-core rules: video-caption

Fails

<video controls src="/media/onboarding.mp4"></video>

Audio-only information. There is no captions track, so a viewer who cannot hear the narration has no way to follow it.

Passes

<video controls src="/media/onboarding.mp4">
  <track kind="captions" src="/media/onboarding.en.vtt" srclang="en" label="English">
</video>

A WebVTT captions track, labelled with its language, that the player exposes through its captions control.

Openwell finds violations like this one across your whole site, clusters them by the component that caused them, and generates a fix that's re-validated before you see it.

Scan your site free
WCAG 1.2.2 Captions (Prerecorded) — what it requires and how to fix it — Openwell