HTML label Attribute

❮ HTML Attributes

Example

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

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



Browser Support




Status




Applies to:

The label attribute can be used on the following element:

Element Attribute
<track> label






Attribute Values

Value Description
text Specifies the title of the text track.
❮ HTML Attributes