The HTML label attribute
Quick answer
The HTML label attribute gives a user-readable title for a media text track, shown in the track selection menu. It is used on the <track> element.
Overview
The label attribute titles a media text track. It is used on the <video>, <audio>, <source> and <track> elements.
It configures native audio or video playback — the source, controls, autoplay and looping behavior, the poster image, and text tracks. It works with the <video>/<audio> elements and their nested <source> and <track> children.
Syntax
<track kind="subtitles" src="fr.vtt" srclang="fr" label="Français">
Values
| Value |
|---|
| A string of label text. |