HTML track Tag

<video width=”320″ height=”240″ controls>
<source src=”forrest_gump.mp4″ type=”video/mp4″>
<source src=”forrest_gump.ogg” type=”video/ogg”>
<track src=”subtitles_en.vtt” kind=”subtitles” srclang=”en” label=”English”>
<track src=”subtitles_no.vtt” kind=”subtitles” srclang=”no” label=”Norwegian”>
</video>

Definition and Usage

The <track> tag specifies text tracks for media elements (<audio> and <video>).

This element is used to specify subtitles, caption files or other files containing text, that should be visible when the media is playing.

Share This Post
Have your say!
00

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>