<video src="https://www.PuStudy.Com/resources/countdown.ogg" width="300" height="150" controls>
<track src="https://www.PuStudy.Com/resources/countdown_en.vtt" kind="subtitles" srclang="en" label="English">
<p>Content for older browsers here...</p>
</video>
The above example demonstrates usage of the <track>
element.
The <track>
element allows you to specify external timed text tracks for media elements.
The <track>
element can be used with the audio
and video
elements to provide subtitles, captions, descriptions, chapters, or metadata.
As well as the global HTML attributes, the <track>
element accepts the following attributes:
kind
subtitles
captions
descriptions
chapters
metadata
src
srclang
label
default