HTML default Attribute
Example
<video width="340" height="260" controls playsinline>
<source src="demo/video.mp4" type="video/mp4">
<source src="demo/video.webm" type="video/webm">
<track src="demo/ensubtitle.vtt" kind="subtitles" srclang="en" label="English">
<track src="demo/frsubtitle.vtt" kind="subtitles" srclang="fr" label="French" default>
Your browser does not support the video tag.
</video>
Meaning
The default attribute specifies that the track should be enabled unless the user's preferences indicate that another track is more appropriate. This may only be used on one track element per media element.
Standard Syntax
HTML: <element default>
XHTML: <element default="default"/>
Browser Support
Status
Applies to:
The default attribute can be used on the following element:
Attribute Values
Value | Description |
---|---|
default | This is a boolean attribute, the presence of a boolean attribute on an element represents the true value, and the absence of the attribute represents the false value. |