HTML

HTML Intro

HTML Intro Quiz

HTML Intro Exercise

HTML Basics

HTML Basic Quiz

HTML Basic Exercise

HTML Advance

HTML Advance Quiz

HTML Advance Exercise

HTML Tags List

HTML Global Attributes

HTML Attributes

FAQs

HTML track Tag

HTML track Tag

 

 

The track tag specifies text tracks for audio or video elements. It is used to specify subtitles, caption files, or other similar text that is visible when the media is playing. They are basically formatted in .vtt files which is actually WebVTT format.

 

Attribute Explanation:-

 

Attribute Value Description
default default Specifies that the track is to be enabled if the user's preferences do not indicate that another track would be more appropriate
kind captions
chapters
descriptions
metadata
subtitles
Specifies the kind of text track
label text Specifies the title of the text track
src URL Required. Specifies the URL of the track file
srclang language_code Specifies the language of the track text data 

 

Syntax:-

 

Its syntax is:- < track >

Code Explanation

All Tutorials related to HTML Tags List

All Sections related to HTML