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

HTML track default Attribute

HTML The default property

HTML track Tag Reference HTML tag

Example

Below is a video element in which one of the two subtitles is the default:


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

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


Definition and Usage

The default attribute is a boolean attribute.

If the default property is used, it specifies that this track should be used, in case the user has not selected another track.


Differences between HTML 4.01 and HTML5

The tag is new in HTML5.

Differences between HTML and XHTML

In XHTML, attributes cannot be abbreviated, so the default attribute must be defined as: .


Syntax


HTML track Tag Reference HTML tag