HTML muted attribute

muted attribute sets the volume of the media to zero. The media (video or audio) is muted after the page is loaded.


<audio src="files/sample.mp3" controls muted>
Try </>

src attribute defines the address of the media. controls attribute adds controls in the media.

muted attribute values

The muted attribute is a boolean type attribute.

It is useful when the video (advertisement) playbacks automatically and automatic audio stream annoys the user.

Related Tags

<video> tag

video tag adds video in a page. It supports muted attribute.


<video src="files/Hummingbird.mp4" controls muted> </video>


<audio> tag

audio element embeds the audio or sound in a page. It also supports muted attribute.

See the example given above.

Related Pages

Visit video and video tags to know about the media.

Was this article helpful?




Get the newsletter