Menu Home

track

osbo.com | HTML | Elements | track

The track HTML element allows authors to specify explicit external text resources for media elements.

Syntax

HTML

<track attribute-name="attribute-value"></track>

Attributes

Global

Name Value Description
default default | empty enable the track if no other text track is more suitable
kind captions | chapters | descriptions | metadata | subtitles the type of text track
label string user-visible label
src URI address of the resource
srclang language tag language of the text track

Examples

default

kind

label

src

srclang

Web Hypertext Application Technology Working Group (WHATWG)