Images & Media

kind="subtitles"

Identifies timed text for viewers who can hear the audio but need its dialogue transcribed or translated. Specify srclang for the subtitle language. 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="subtitles"

Parameters & Attributes

NameTypeDescription
kindkeywordIdentifies timed text for viewers who can hear the audio but need its dialogue transcribed or translated. Specify srclang for the subtitle language.
srclanglanguage tagIdentifies the language of the subtitle track.

Working Example

Example Snippethtml
<video controls src="sample.mp4">  <track kind="subtitles" src="track.vtt" srclang="en" label="English"></video>
HTML Reference