HTML <track> srclang Attribute (original) (raw)
Last Updated : 12 Jul, 2025
The **HTML element's srclang attribute specifies the language of the text track's data. It is used in elements within
**Note: srclang attribute is required with _kind = “subtitles”.
**Syntax
**Attribute Values
- **language_code: It contains the value i.e. **language_code It defines a two-letter language code that specify the language of the track text.
**Example: In this example we demonstrates a video element with a track for subtitles. The srclang attribute specifies the subtitle language as English for the video.
html `
HTML Track srclang AttributeGeeksforGeeks
HTML Track srclang Attribute
<video width="600" height="400" controls>
<track src="CSS-animation-duration02.mp4"
id="myTrack1"
kind="subtitles"
srclang="en"
label="English">
<source id="myTrack"
src="CSS-animation-duration02.mp4"
type="video/mp4">
</video>
`
**Output:

**Supported Browsers
The browsers supported by **** srclang Attribute** are listed below: