This is an important message requiring you to make a choice if you're based in the EU.

HTML <track> Tag

The <track> tag defines subtitles, captions, descriptions, chapters, or metadata for either <audio> or <video> media element. The tag is a child tag of these tags.


<[audio | video]>
   <track src="...">
</[audio | video]>

The closing tag (</track>) is not obligatory.


<!DOCTYPE html>
    <title>Title of the document</title>
      video {
        width: 300px; 
        height: 200px;
        border: 1px solid #666;
    <video controls muted src="/build/videos/arcnet.io(7-sec).mp4">
      <track default kind="subtitles" srclang="en" src="/build/videos/arcnet.io(7-sec).mp4"/>
    <p>Some information about video</p>


Attribute Value Description
default default Specifies that the track should be enabled unless the user's preferences indicate that another track is more appropriate. This is used on one track element per media element.
kind Defines the kind of text track.
captions Translation of dialogue and sound effects.
chapters Chapter titles for better navigation.
descriptions A textual description of the video content.
metadata Content used by scripts ( not visible for the user).
subtitles Subtitles in a video.
label text Specifies a user-readable title of the text track
src URL Sets the path of the track.
srclang language_code Sets the language of the track text data (must be defined if kind = "subtitles").

The <track> tag also supports the Global attributes and the Event Attributes.

Browser support

18+ 31+ 6+ 15+

Do you find this helpful?

Related articles