CKTIS / HTML
muted — default media muting
The muted boolean attribute specifies default muting for audio and video elements. The defaultMuted property reflects the attribute, whereas muted reads and changes current muting.
Version: WHATWG HTML Living Standard; index snapshot date recorded separately
Syntax
<audio muted></audio>
<video muted></video>muted specifies default muting for audio and video elements. It is not a command to start playback.
As a boolean attribute, it accepts muted, muted="", and muted="muted". Omission represents false. Writing muted="false" is invalid and still means the attribute is present, not disabled.
In JavaScript, defaultMuted reflects the attribute's presence, while muted controls current muting. Once the muted property is set or the user indicates a preference, the attribute no longer controls the current state. muted = false does not remove the attribute.
The example explicitly sets the current state, then unmutes it. The result [true,false] demonstrates the distinction between the default and current settings.
Examples
<!doctype html>
<meta charset="utf-8">
<title>muted</title>
<video id="media" muted></video>
<pre id="result"></pre>
<script>
const media = document.getElementById('media');
media.muted = true;
const lines = [JSON.stringify([media.defaultMuted, media.muted])];
media.muted = false;
lines.push(JSON.stringify([media.defaultMuted, media.muted]));
document.getElementById('result').textContent = lines.join('\n');
</script>Result
[true,true] [true,false]
The displayed code and declared result were verified in an isolated environment using the method recorded in the verification evidence for this exact version.