HTML <track> Element Reference

The HTML <track> element attaches timed text such as captions or subtitles to media.

<track>

HTML <track> Element Reference

The HTML <track> element attaches timed text such as captions or subtitles to media.

Categories

  • Embedded content

Tag omission

This is a void element and does not have an end tag.

Content model

  • Detailed content-model guidance will be added to this reference.

Attributes

Examples

Example

A practical track element example.

<video controls src="talk.mp4">
  <track kind="captions" src="captions-en.vtt" srclang="en" label="English">
</video>

Related references

Description

The HTML <track> element attaches timed text such as captions or subtitles to media.

References

  1. HTML Living Standard: Index of elements
  2. MDN: HTML <track> Element

Similar or alternative tools

Don't forget to set a bookmark for tool.io!
Privacy | Imprint | Cookies