HTML <track> kind Attribute
Definition and Usage
kind
The attribute specifies the type of the text track.
Example
A video with two subtitle tracks:
<video width="320" height="240" controls> <source src="forrest_gump.mp4" type="video/mp4"> <source src="forrest_gump.ogg" type="video/ogg"> <track src="fgsubtitles_en.vtt" kind="subtitles" srclang="en" label="English"> <track src="fgsubtitles_no.vtt" kind="subtitles" srclang="no" label="Norwegian"> </video>
Syntax
<track src="subtitles_en.vtt" kind="subtitles" srclang="en">
Attribute Value
Value | Description |
---|---|
captions | This track defines the translation of dialogue and sound effects (for deaf users). |
chapters | This track defines chapter titles (for browsing media resources). |
descriptions | This track defines the textual description of the video content (for blind users). |
metadata | This track defines the content used by the script. It is not visible to users. |
subtitles | This track defines subtitles for display in videos. |
Browser Support
The numbers in the table indicate the first browser version to fully support this attribute.
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
23.0 | 10.0 | 31.0 | 6.0 | 12.1 |