Home  »  HTML   »   track

It specifies text tracks for audio or video elements.It is used to specify subtitles, caption files, or other metadata, that should be visible when the media is playing. Tracks are formatted in WebVTT format (.vtt files).

src

represents the URL of the track file.

  • URL
kind

Kind of caption

  • captions
  • chapters
  • descriptions
  • metadata
  • subtitles
Text

Specifies the title of the text track

  • Text
srclang

Specifies the language of the track text data (required if kind="subtitles")

  • language_code

HTML track Example:

Edit Example

Related HTML Tags: