A video with two subtitle tracks:
The srclang attribute specifies the language of the track text data.
This attribute is required if kind="subtitles".
Tip: To view all available language codes, go to our Language code reference.
The numbers in the table specify the first browser version that fully supports the attribute.
Attribute | |||||
---|---|---|---|---|---|
srclang | 18.0 | 10.0 | Not supported | Not supported | 15.0 |
The <track> tag is new in HTML5.
Value | Description |
---|---|
language_code | Specifies a two-letter language code that specifies the language of the track text data |