English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
The label attribute specifies the title of the text track. When listing available text tracks, the browser uses the title of the text track.
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>
IEFirefoxOperaChromeSafari
Internet Explorer 10, Opera, and Chrome support the label attribute.
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.
The <track> tag is part of HTML5 New tag.
<track src="subtitles_en.vtt" kind="subtitles" srclang="en" label="English">
Value | Description |
---|---|
label | Title of the specified track. |