Video Captions
Checks that videos have captions or transcripts
Checks that videos have captions or transcripts
| Rule ID | a11y/video-captions |
| Category | Accessibility |
| Scope | Per-page |
| Severity | warning |
| Weight | 5/10 |
Solution
All video content needs captions for deaf/hard-of-hearing users (WCAG 1.2.2). Add <track kind='captions' src='captions.vtt' srclang='en'> to video elements. For embedded videos (YouTube, Vimeo), enable captions in the embed settings. Also provide a text transcript for complex content. Auto-generated captions should be reviewed for accuracy.
Enable / Disable
Disable this rule
squirrel.toml
toml[rules]
disable = ["a11y/video-captions"]Disable all Accessibility rules
squirrel.toml
toml[rules]
disable = ["a11y/*"]Enable only this rule
squirrel.toml
toml[rules]
enable = ["a11y/video-captions"]
disable = ["*"]