English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

HTML Reference Manual

Complete List of HTML Tags

HTML: <track> kind attribute

Usage of the <track> kind attribute, the kind attribute specifies the type of text track, an online example demonstrates how to use the <track> kind attribute, browser compatibility, syntax definition, and detailed information about its attribute values.

 HTML <track> tag

Online Example

A video with two subtitle tracks:

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

Browser Compatibility

IEFirefoxOperaChromeSafari

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

Definition and Usage

The 'kind' attribute specifies the type of the track.

HTML 45.01 from HTML5differences

<track> tag is part of HTML5 New tag.

Syntax

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

Attribute Value

ValueDescription
captionsThis track defines a short description that will be displayed in the player.
chaptersThis track defines chapters for navigating media resources.
descriptionsThis track defines descriptions for audio descriptions of media content, if the content is not playable or visible.
metadataThis track defines the content used by the script.
subtitlesThis track defines subtitles to be displayed in the video.

 HTML <track> tag