HTML track default properties
Examples
Here is a video element, one of the two which is the default subtitles:
<video width="320" height="240" controls>
<source src="forrest_gump.mp4" type="video/mp4">
<source src="forrest_gump.ogg" type="video/ogg">
<track src="subtitles_en.vtt" kind="subtitles" srclang="en"
label="English" default>
<track src="subtitles_no.vtt" kind="subtitles" srclang="no"
label="Norwegian">
</video>
<source src="forrest_gump.mp4" type="video/mp4">
<source src="forrest_gump.ogg" type="video/ogg">
<track src="subtitles_en.vtt" kind="subtitles" srclang="en"
label="English" default>
<track src="subtitles_no.vtt" kind="subtitles" srclang="no"
label="Norwegian">
</video>
Browser Support
Internet Explorer 10, Opera, and Chrome support default properties.
Definition and Usage
default attribute is a boolean (Boolean) property.
If you use the default attribute, you should use the provisions of the tracks, if the user does not select the other tracks words.
Differences between HTML 4.01 and HTML5
<Track> tag HTML5 is the new label.
Differences between HTML and XHTML
In XHTML, the property does not allow profile, default attributes must be defined as: <track default = "default" />.
grammar
<track src="subtitles_en.vtt" default>
HTML <track> tag