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

HTML Reference Manual

HTML Tag Reference

HTML: <track> label attribute

The label attribute specifies the title of the text track. When listing available text tracks, the browser uses the title of the text track.

 HTML <track> tag

Online Example

This video has two subtitle tracks, both of which define labels:

<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 label attribute.

Definition and usage

The label attribute specifies the title of the text track.
When listing available text tracks, the browser will use the title of the text track.

HTML 4.01 from HTML5differences

The <track> tag is part of HTML5 New tag.

Syntax

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

Attribute value

ValueDescription
labelTitle of the specified track.


 HTML <track> tag