What is the HTML Muted Attribute?

The HTML muted attribute is a Boolean attribute that initializes an audio or video element with sound disabled. Its presence represents true regardless of the textual value assigned to it.

How the HTML Muted Attribute works

On an HTML media element, muted is a content attribute that sets the initial default-muted state during parsing. Boolean attribute syntax is presence-based, so muted="false" still requests muting; removing the attribute expresses false. Runtime playback state is exposed separately through the element’s muted property and can be changed by script or user controls. The setting participates in browser autoplay policy and in the accessible design of video playback, but it is not a security boundary.

Key facts

  1. The HTMLMediaElement.defaultMuted property reflects the muted content attribute, whereas HTMLMediaElement.muted represents the current audio-muted state.
  2. For a Boolean HTML attribute, muted="false" and muted="0" are both present and therefore true; code must remove the attribute to express false.
  3. Muting affects rendered audio output, not the encoded track: downloading, recording, or remuxing the resource can still preserve its sound.

When the HTML Muted Attribute matters

Set muted on autoplaying video because browsers commonly restrict autoplay with audible sound. Provide an accessible way to enable audio, and do not assume the attribute permanently prevents script changes.

Turn media knowledge into a working pipeline

Connect uploads, processing, AI, storage, and delivery through one declarative API — with the encoding stack, scaling, and format churn handled for you.

Try Transloadit for free