<track>: The HTML Track Element
1 Description
The HTML <track>
element is used in conjunction with
the <audio>
and <video>
elements to specify
a timed text track which can be displayed to the user alongside video or
audio content.
Multiple <track>
elements can be defined as children of a single
<video>
element or <audio>
element.
2 Examples
<!DOCTYPE html>
<html>
<head>
<title>Example Page</title>
</head>
<body>
<h1>Example HTML Page</h1>
<p>This is a video of a penguine.</p>
<video>
<source src="/media/video/penguine_1.webm" type="video/webm"/>
<track default kind="captions" srclang="en" src="/media/track/penguine_1.vtt"/>
</video>
</body>
</html>
This document was last updated: