The <track>
element
Represents a source of a timed text track that can be used to accompany an <audio>
or <video>
element, such as a series of captions or subtitles.
This is an empty element, so it shouldn't have a closing tag.
Full list of attributes
All the usual HTML global attributes are available
default
- One track can have this attribute, indicating that it should be used unless the user has said otherwise.
kind
- The purpose this text track is meant to fulfill.
label
- A title for this text track which can be presented to the user when they're choosing whether to use it or not.
src
- The URI of the file containing the textual information.
srclang
- The language that the text is written in.