Captions for video elements
Last updated:
How to fix this issue?
Add a <track> element with kind="captions" to the <video> element:
<video controls>
<source src="interview.mp4" type="video/mp4" />
<track
kind="captions"
src="interview.vtt"
srclang="en"
label="English captions"
default
/>
</video>
The caption file (.vtt or .srt) must include:
- All spoken dialogue
- Speaker identification where multiple speakers are present
- Relevant non-speech audio (applause, alarms, music)
If the video is silent or audio-free, add aria-label to indicate it has no audio:
<video controls aria-label="Screen recording without audio">
<source src="demo.mp4" type="video/mp4" />
</video>
Why is this important?
Captions make video content accessible to people who are deaf or hard of hearing. They also benefit users in noisy environments, users watching without headphones, and people learning the language. Without captions, a significant portion of users cannot access the information conveyed through audio.
More info:
Rule info
Standard
Regulations
User impact
Critical impact Prevents users with disabilities from accessing content entirely. Must be fixed. Critical : blocks access entirely Serious : significantly hinders use Moderate : causes difficulty Minor : minimal disruptionFix complexity
High level of required technical expertise To resolve this issue, you need technical expertise in software engineering. Resolving this issue requires modifying the software code, for which you need a background in software engineering.Affects
Free Website Accessibility Audit