# Video Caption

> Prerecorded video that includes sound must expose a track element for captions.

Source: https://knowledge.evinced.com/web/web-validations/video-caption

Prerecorded video that includes sound must expose a `track` element for captions.

Captions turn a prerecorded video's soundtrack into synchronized text, so dialogue, sound effects, and music cues are perceivable for people who are deaf or hard of hearing. Every video with meaningful audio needs a captions file linked through a `track` element with `kind="captions"`. Without it, a whole layer of information is lost.

## Pass Patterns

### A single captions track

The video links one caption file declared with `kind="captions"`.

```html
<video width="300" height="200" controls>
    <source src="myVideo.mp4" type="video/mp4">
    <track src="captions_en.vtt" kind="captions" srclang="en" label="English captions">
</video>
```

### Multiple caption languages

Two caption tracks let the viewer choose a language.

```html
<video width="300" height="200" controls>
    <source src="promo.mp4" type="video/mp4">
    <track src="captions_en.vtt" kind="captions" srclang="en" label="English captions">
    <track src="captions_es.vtt" kind="captions" srclang="es" label="Spanish captions">
</video>
```

## Fail Patterns

### No captions track

The video has audio but provides no `<track>` element for captions.

```html
<video width="300" height="200" controls>
    <source src="productDemo.mp4" type="video/mp4">
</video>
```

### Track marked as subtitles

The `<track>` uses `kind="subtitles"`, so it omits the sound-effect descriptions that captions provide.

```html
<video controls>
    <source src="lecture.mp4" type="video/mp4">
    <track src="lecture_en.vtt" kind="subtitles" srclang="en">
</video>
```

## WCAG techniques

### Sufficient techniques

-   [G93: Providing open (always visible) captions](https://www.w3.org/WAI/WCAG22/Techniques/general/G93)
-   [G87: Providing closed captions](https://www.w3.org/WAI/WCAG22/Techniques/general/G87)
-   [H95: Using the track element to provide captions](https://www.w3.org/WAI/WCAG22/Techniques/html/H95)

### Failure techniques

-   [F8: Failure of Success Criterion 1.2.2 due to captions omitting some dialogue or important sound effects](https://www.w3.org/WAI/WCAG22/Techniques/failures/F8)
-   [F75: Failure of Success Criterion 1.2.2 by providing synchronized media without captions when the synchronized media presents more information than is presented on the page](https://www.w3.org/WAI/WCAG22/Techniques/failures/F75)

## ACT Rules

-   [Video element auditory content has accessible alternative](https://www.w3.org/WAI/standards-guidelines/act/rules/eac66b/)

## Try It Yourself

### Watching the video

1.  Load the page and start the video.
2.  Turn captions on using the video player's controls.
3.  Pause now and then to confirm captions appear in sync.

**Expected results:** The player exposes a captions track, and caption text appears in sync with the video.

**Actual results:** No captions track is available, so the audio has no text equivalent.

### Inspecting the browser dev-tools

1.  Right-click the video and choose Inspect.
2.  Expand the `<video>` element.
3.  Look for a `<track>` child with `kind="captions"`.

**Expected results:** A `track` element with `kind="captions"` and a valid `src` is present.

**Actual results:** No `track` with `kind="captions"` exists, or the only track uses `kind="subtitles"`.

## FAQ

**How does this issue relate to 1.2.2 Captions (Prerecorded)?**

SC 1.2.2 requires captions for all prerecorded audio in synchronized media. A captions `<track>` provides that text alternative, so dialogue and important sounds are available as synchronized text.

**Why is this issue marked as Critical?**

Without captions, people who are deaf or hard of hearing miss dialogue, narrative cues, and sound effects, losing the core meaning of the content. The barrier affects every major browser and assistive technology, so it is rated critical.

## Standards and Regulations

| Standard | Success Criterion | Reference |
| --- | --- | --- |
| WCAG 2.2 | [1.2.2 Captions (Prerecorded)](https://www.w3.org/TR/WCAG22/#captions-prerecorded) (A) | Captions are provided for all prerecorded audio content in synchronized media, except when the media is a media alternative for text and is clearly labeled as such. |
| EN 301 549 | [9.1.2.2 Captions (Prerecorded)](https://www.etsi.org/standards/etsi-301-549) | Same as the WCAG text. |
| Section 508 | [1194.22(b)](https://www.federalregister.gov/documents/2018/01/18/2018-00712/section-508-standards-update#d22) | Equivalent alternatives for any multimedia presentation shall be synchronized with the presentation. |
| 508 Trusted Tester | [1.2.2-captions-equivalent, 17.A](https://section508coordinators.github.io/TrustedTester/media.html#check-122-captions-equivalent) | The multimedia provides accurate captions for the audio content. |

## Personas impacted by this issue

-   [Deaf and Hard of Hearing](https://knowledge.evinced.com/a11y-essentials/personas#deaf-and-hard-of-hearing)

## Related Issues

-   [no-autoplay-audio](https://knowledge.evinced.com/web/web-validations/no-autoplay-audio)
