The HTML default attribute
Quick answer
The HTML default attribute marks the track to be enabled by default if the user has no preference. It is used on the <track> element.
Overview
The default attribute enables a media track by default. It is used on the <video>, <audio>, <source> and <track> elements.
It configures native audio or video playback — the source, controls, autoplay and looping behavior, the poster image, and text tracks. It works with the <video>/<audio> elements and their nested <source> and <track> children.
Syntax
<track kind="captions" src="en.vtt" srclang="en" default>
Values
| Value |
|---|
| A boolean attribute — present or absent. |