Free scan

Fix "Video without captions" in HTML

Why it's a problem

A video whose soundtrack carries speech or meaningful sounds is inaccessible to Deaf and hard-of-hearing people without synchronised captions — and to anyone watching muted. axe-core cannot tell whether the video speaks: it reports a missing captions track as an item to review, not a certain failure.

How to fix it — HTML

Add a <track kind="captions"> in WebVTT format, synchronised and faithful to the dialogue, with meaningful sounds in brackets. Proofread auto-generated captions before publishing: recognition errors sometimes change the meaning. A video with no speech or meaningful sound does not need them.

Avoid
<video src="/demo.mp4" controls></video>
Correct
<video controls>
  <source src="/demo.mp4" type="video/mp4">
  <track kind="captions" src="/demo.fr.vtt" srclang="fr" label="Français" default>
</video>

RGAA criterion 4.3 — Multimédia

Chaque média temporel synchronisé pré-enregistré a-t-il, si nécessaire, des sous-titres synchronisés (hors cas particuliers) ?

How to check: official tests (in French)

  1. Test 4.3.1

    Chaque média temporel synchronisé pré-enregistré vérifie-t-il, si nécessaire, l’une de ces conditions (hors cas particuliers) ?

    Le média temporel synchronisé possède des sous-titres synchronisés ;

    Il existe une version alternative possédant des sous-titres synchronisés accessible via un lien ou bouton adjacent.

  2. Test 4.3.2

    Pour chaque média temporel synchronisé pré-enregistré possédant des sous-titres synchronisés diffusés via une balise <track>, la balise <track> possède-t-elle un attribut kind="captions" ?

Full page for criterion 4.3 · Official text: Référentiel général d'amélioration de l'accessibilité (RGAA) 4.1, DINUM, Licence Ouverte 2.0.

Check your site in 30 seconds

Conformly detects this kind of issue across all your pages, continuously, and alerts you on every regression.

Free scan