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).


represents the URL of the track file.

  • URL

Kind of caption

  • captions
  • chapters
  • descriptions
  • metadata
  • subtitles

Specifies the title of the text track

  • Text

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

  • language_code

HTML track Example:

Edit Example

Related HTML Tags: