Easy Tutorial
❮ Tag Ruby Tag Template ❯

HTML <track> srclang Attribute

HTML <track> Tag

Example

A video element with two subtitle tracks:


Browser Support

Internet Explorer 10, Opera, and Chrome support the srclang attribute.


Definition and Usage

The srclang attribute specifies the language of the track.

If the kind attribute is set to "subtitles", the srclang attribute is required.

Tip: For a list of all available language codes, visit our Language Codes Reference.


Differences Between HTML 4.01 and HTML5

The <track> tag is new in HTML5.


Syntax

Attribute Values

Value Description
language_code A two-letter language code that specifies the language of the track.

❮ Tag Ruby Tag Template ❯