Skip to content

Latest commit

 

History

History
43 lines (29 loc) · 1.58 KB

require-media-caption.md

File metadata and controls

43 lines (29 loc) · 1.58 KB

require-media-caption

✅ The extends: 'recommended' property in a configuration file enables this rule.

Captions provide a text version of the spoken and non-spoken audio information for media. They are essential for making audio and video content accessible for users who are deaf as well as those for whom the media is unavailable (similar to alt text on an image when it is unable to load).

Captions should contain all relevant information needed to help users understand the media content, which may include a transcription of the dialogue and descriptions of meaningful sound effects. They are synchronized with the media to allow users access to the portion of the content conveyed via the audio track. Note that when audio or video components include the muted attribute, however, captions are not necessary.

Examples

This rule forbids the following:

<audio></audio>
<video><track /></video>
<video><track kind="descriptions" /></video>

This rule allows the following:

<audio><track kind="captions"></audio>
<video muted="true"></video>
<video><track kind="captions" /><track kind="descriptions" /></video>

References