Advertisement
Home Open Editor ❯

HTML <track> label Attribute

Example

<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.
</video>

Try this code ❯

Meaning

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" />


Advertisement

Attribute Values

Value Description
text Specifies the title of the text track.
Home Open Editor ❯
Advertisement