Latest web development tutorials

HTML track kind property

Tag Reference HTML track HTML <track> tag

Examples

video element 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="subtitles_en.vtt" kind="subtitles" srclang="en"
label="English">
<track src="subtitles_no.vtt" kind="subtitles" srclang="no"
label="Norwegian">
</video>

Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

Internet Explorer 10, Opera, and Chrome support the kind property.


Definition and Usage

kind attribute specifies the type of track.


Differences between HTML 4.01 and HTML5

<Track> tag HTML5 is the new label.


grammar

<track src="subtitles_en.vtt" kind="subtitles" srclang="en">

Property Value

value description
captions Short description of the track will be defined in the player display.
chapters The rail section is defined, for navigation media resources.
descriptions This definition describes the track for the audio description of media content, if the content can not be played or not visible.
metadata Define the content of the track used by the script.
subtitles The caption track is defined for displaying subtitles in the video.


Tag Reference HTML track HTML <track> tag