HTML <track> label Attribute

❮ HTML <track> tag


<video width="340" height="260" controls playsinline>
  <source src="video.mp4" type="video/mp4">
  <source src="video.webm" type="video/webm">
  <track src="ensubtitle.vtt" kind="subtitles" srclang="en" label="English">
  <track src="frsubtitle.vtt" kind="subtitles" srclang="fr" label="French">
  Your browser does not support the video tag.


The label attribute specifies title of the text track which is used by the browser when listing available text tracks.

Standard Syntax

HTML: <track label="text">

XHTML: <track label="text" />

Browser Support


Attribute Values

Value Description
text Specifies the title of the text track.
❮ HTML <track> tag