HTML muted Attribute

The muted attribute on a media element mutes (silences) the audio or video player. The media file can be played, but without sound. Elements that accept this attribute include <audio>, and <video>.

Example

#

A muted attribute on a <audio> tag.
The audio file can be played, but without sound.

<audio controls muted>
  <source src="/media/epic.mp3" type="audio/mpeg">
  <source src="/media/epic.wav" type="audio/wav">
</audio>

For additional details see our HTML audio muted Reference.


Using muted

The muted attribute mutes (silences) the audio or video control.

To play the media file, click the mute button, or remove the muted attribute.

An audio control with the muted attribute can play, but without sound.

Similarly, a video control with the muted attribute can play, but without sound.


Syntax

<tagname muted>

Elements that accept muted

The following elements accept the muted attribute.

Elements Description
<audio> Creates an audio player -- see example above
<video> Creates a video player

<video> with muted

A <video> tag with an muted attribute.
The video can be played, but without sound.

<video width="320" height="240" controls muted>
  <source src="/media/movie.mp4" type="video/mp4">
  <source src="/media/movie.ogg" type="video/ogg">
</video>

For additional details see our HTML video muted Reference.


Browser support

Here is when muted support started for each browser:

Chrome
4.0 Jan 2010
Firefox
11.0 Mar 2012
IE/Edge
10.0 Sep 2012
Opera
11.5 Aug 2011
Safari
7.1 Sep 2014

You may also like



Guides