<track> Tag in HTML 5

In this article I am going to tell about <track> Tag in HTML 5.
  • 2035
Definition

<track> Tag is introduced in HTML 5. It specifies text track of media elements i.e.(<audio> and <video>). It is used to specify subtitle of the track, caption files, that should be visible when the media is playing.

Example
 

<video src="/C:\Users\User\Downloads\Srimannarayaneeyam37Dasakamtelugu.ogv" width="350" height="180" controls>
       <track src="Srimannarayaneeyam37Dasakamtelugu_en.vtt" kind="subtitles" srclang="en" label="English">
       <track src="Srimannarayaneeyam37Dasakamtelugu_hi.vtt" kind="subtitles" srclang="hi" label="Hindi">
       <p>If you are reading this, it is because your browser does not support the HTML5 video  element. </p>
</video>

Output

video.JPG

You can read more about HTML 5 Tags here

Ask Your Question 

Got a programming related question? You may want to post your question here

Programming Answers here

© 2019 DotNetHeaven. All rights reserved.