Easy Tutorial
❮ Att Td Char Att Textarea Cols ❯

HTML <track> default Attribute

HTML <track> Tag

Example

Below is a video element with one of the two subtitles set as default:


Browser Support

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


Definition and Usage

The default attribute is a boolean attribute.

If the default attribute is used, it specifies that the track should be enabled if the user's preferences do not indicate that another track would be more appropriate.


Differences Between HTML 4.01 and HTML5

The <track> tag is new in HTML5.


Differences Between HTML and XHTML

In XHTML, attributes cannot be minimized, so the default attribute must be defined as: <track default="default" />.


Syntax


❮ Att Td Char Att Textarea Cols ❯