HTML <track> kindProperty

HTML <track> tag

Example

A video element with two subtitle tracks:

<video width="320" height="240" controls>
  <source src="forrest_gump.mp4.html" type="video/mp4">
  <source src="forrest_gump.ogg.html" type="video/ogg">
  <track src="subtitles_en.vtt.html" kind="subtitles" srclang="en"
  label="English">
  <track src="subtitles_no.vtt.html" kind="subtitles" srclang="no"
  label="Norwegian">
</video>

Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

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


Definition and Usage

The kind attribute specifies the kind of track.


Differences between HTML 4.01 and HTML5

The <track> tag is a new tag in HTML5.


Syntax

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

Property value

Value Description
captions This track defines a short description that will be displayed in the player.
chapters This track defines chapters for navigating the media resource.
descriptions This track defines descriptions, used to describe the media content via audio, in case the content is not playable or visible.
metadata The content used by this orbit definition script.
subtitles This track defines subtitles, used to display subtitles in the video.


HTML <track> tag

other extensions