Images & Media
kind="captions"
Identifies timed text including speech and meaningful non-speech audio, such as alarms or music cues. Use for deaf or hard-of-hearing viewers, and review synchronization and accuracy. On track inside audio or video; absent defaults to subtitles, invalid defaults to metadata. Supply a WebVTT file and a media asset to observe cue behavior.
Formal Syntax & Structure
html syntaxhtml
kind="captions"Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| kind | keyword | Identifies timed text including speech and meaningful non-speech audio, such as alarms or music cues. Use for deaf or hard-of-hearing viewers, and review synchronization and accuracy. |
Working Example
Example Snippethtml
<video controls src="sample.mp4"> <track kind="captions" src="track.vtt" srclang="en" label="English"></video>