track
I. 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.
II. 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>