Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML track srclang Attribute

HTML srclang property

HTML track Tag Reference HTML tag

Example

A video element with two subtitle tracks:


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

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


Definition and Usage

The srclang attribute defines the language of the track.

If the value of the kind attribute is "subtitles", the srclang attribute is required.

Tip: To view all available language codes, please visit our Language Code Reference Manual.


Differences between HTML 4.01 and HTML5

The tag is new in HTML5.

Syntax

Attribute values

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

HTML track Tag Reference HTML tag