liveBook · Manning

Track element

As explained in Architecting Accessibility

The track element is an HTML element that associates timed text or other media tracks with audio or video.

The HTML <track> element associates a timed text file, such as WebVTT, with audio or video. Use it to offer captions that help people who are deaf or hard of hearing follow dialogue and meaningful sounds. section 3.4.2

<video controls src="/latest/podcast.webm">
  <track kind="captions" src="/latest/captions/podcast.vtt" srclang="en" />
</video>

This example links a WebVTT caption file to a video. The browser loads the file separately and displays its cues at their timestamps when captions are enabled. section 3.4.2

Caption files should include spoken dialogue, speaker identification, and meaningful non-speech sounds. Review auto-generated captions for accuracy and meaning. Tracks can also provide subtitles in other languages, audio descriptions, or chapter titles. section 3.4.2

How Architecting Accessibility covers it

How deep it goes
Explains WebVTT association and timed display, but does not detail the element’s full attribute behavior.
Examples
Shows a podcast video linked to a WebVTT caption file.
What you can do after
Apply native HTML to associate a timed caption file with a video.
How it connects
Connects HTML video, WebVTT, captions, subtitles, and transcripts.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Architecting Accessibility. The section links point to the parts of the book it draws on.