The default attribute is a boolean on <track>. It marks which text track (subtitles, captions, and similar) should be enabled when the user has not picked another track.
Choose which subtitle track has default. Play the video and open the CC / subtitles menu if cues are hidden.
Only one track should have default at a time.
video + track
English.default = true · Español.default = false
Code
HTML Examples
Short, copy-ready snippets. Use Try It Yourself for a live editor.
Example 1 — Default Captions Track
Enable English captions automatically for accessibility.
HTML
<video controls width="400">
<source src="flower.webm" type="video/webm">
<track
default
kind="captions"
srclang="en"
label="English"
src="captions-en.vtt">
Your browser does not support HTML video.
</video>
Open the captions menu if text is not visible yet.
How It Works
Nest track under video (or audio).
default asks the browser to enable this track first.
kind="captions" marks closed captions (dialog + sounds).
src points to a WebVTT file with the timed cues.
Example 2 — Several Languages, One Default
Offer multiple subtitle tracks; mark only one with default.
HTML
<video controls width="400">
<source src="flower.webm" type="video/webm">
<track kind="subtitles" srclang="en" label="English"
src="subs-en.vtt" default>
<track kind="subtitles" srclang="es" label="Español"
src="subs-es.vtt">
Your browser does not support HTML video.
</video>
Clear the other with default = false so only one stays default.
Reload or re-select captions in some browsers if the active cue does not update immediately.
Edge Cases & Pitfalls
Most mistakes come from treating default like a form attribute or stacking several defaults.
scope
Only one default per media element
Do not put default on multiple <track> children of the same video/audio.
forms
Not for inputs or options
Use selected / checked / value for form defaults — never default.
vtt
Same-origin WebVTT
src must be same-origin unless the media element uses CORS (crossorigin). Broken VTT = no cues.
a11y
Prefer captions when needed
For deaf or hard-of-hearing users, kind="captions" (dialog + sounds) is usually better than plain subtitles.
prefs
User settings can win
default applies unless preferences say another track is more appropriate — do not fight the user’s caption language settings.
Compatibility
Browser Support
default is an HTML attribute on track inside video/audio. It is not a Node.js, Deno, or Bun API.
✓ Baseline · Widely available
default
Widely available with HTML5 track support (since about July 2015). Captions UI differs by browser, but the attribute itself is reliable.
96%Global support (approx.)
Google Chrome23+
Full support
Mozilla Firefox31+
Full support
Apple Safari6+
Full support
Microsoft Edge12+
Full support
Opera12.1+
Full support
Samsung InternetModern
Full support
Internet Explorer10+
Supported
defaultWidely supported
Bottom line: Safe to use for default captions/subtitles. Always provide real .vtt files and test the player’s CC menu on your target browsers.
Remember
Key Takeaways
Role: mark the default text track on <track>.
Limit: only one default per video/audio.
JS: use HTMLTrackElement.default (boolean).
Not for forms: use selected / checked / value there.
One line:default on <track> picks which captions/subtitles start on — one per player.
Frequently Asked Questions
On a track element, default is a boolean that marks the text track to enable when the user has not chosen another track. It is used for subtitles, captions, and other timed text on video or audio.
Only the track element, as a child of video or audio. It is not a form attribute.
No. For forms use value on inputs, checked on checkboxes/radios, and selected on option. The default attribute is for track only.
MDN and the HTML living standard: use default on only one track element per media element. Extra defaults are invalid.
Use the boolean HTMLTrackElement.default property, for example trackEl.default = true. Prefer only one track with default true at a time.
No. The track is enabled unless the user’s preferences indicate that another track is more appropriate.