Language References
Defines text tracks for media elements. | HTML 5 |
HTML Syntax
<track
default
kind = captions | chapters | descriptions | metadata | subtitles
label = text
src = url
srclang = language code
event = script
>
The TRACK element is used to specify supplementary text tracks for <audio
> and <video
> elements.
Only the <track
> start tag must be present. The element has no end tag.
The <track
> element supports the following attributes, in addition to global attributes common to all HTML media elements.
Attribute | Value | Description |
default | default | Specifies that the track is to be enabled if the user's preferences do not indicate that another track would be more appropriate |
kind | captions | chapters | descriptions | metadata | subtitles | Specifies the kind of text track |
label | text | Specifies the title of the text track |
src | URL | Required. Specifies the URL of the track file |
srclang | language code | Specifies the language of the track text data (Required if kind = subtitles ) |
VIDEO