Advertisement
Home Open Editor ❯

HTML label Attribute

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>

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


Applies to:

The label attribute can be used on the following element:

Element Attribute
<track> label

Advertisement

Attribute Values

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