Skip to content
Related Articles

Related Articles

Improve Article
Save Article
Like Article

HTML | <track> srclang Attribute

  • Last Updated : 10 Jun, 2019

The HTML <track> srclang Attribute is used to specify the language of the track text. The srclang attribute can be applied on the <track> element:

Note: srclang attribute is required with kind = “subtitles”.

Attention reader! Don’t stop learning now. Get hold of all the important HTML concepts with the Web Design for Beginners | HTML  course.


<track src="subtitles_en.vtt" kind="subtitles" srclang="en"> 

Attribute Values

  • language_code: It contains the value i.e language_code It defines a two-letter language code which specify the language of the track text.


<body style="text-align: center">
    <h1 style="color: green"
    <h2>HTML Track srclang Attribute</h2>
    <video width="600" 
        <track src="CSS-animation-duration02.mp4" 
            <source id="myTrack"


Supported Browsers: The browsers supported by <track> srclang Attribute are listed below:

  • Google Chrome 18.0
  • Internet Explorer 10.0
  • Firefox 31.0
  • Apple Safari 6.0
  • Opera 15.0

My Personal Notes arrow_drop_up
Recommended Articles
Page :