HTML muted Attribute

If this site has been useful, we’d love your support! Running this site takes time and resources, and every small contribution helps us keep creating valuable content. Consider buying us a coffee to keep things going strong!

Description

The HTML muted attribute is a Boolean attribute used in media elements such as <video> and <audio>. When specified, it indicates that the audio output of the video should be muted by default. This means that when the webpage loads and the media begins to play, the sound will not play automatically unless the user unmutes it or the web developer programmatically changes the setting. This attribute is particularly useful for improving user experience on web pages with background videos or autoplay media content, as it avoids surprising the user with sudden audio. It's a simple, no-value attribute; merely including muted in the tag is sufficient to apply its effect. For instance, in a <video> tag, you would write <video muted> to mute the audio by default.

Syntax

<tagname muted>

Values

The muted attribute is a boolean attribute, therefore no values are associated with this attribute.

Applies To

The muted attribute can be used on the following html elements.

Example

<video width="400" height="300" muted controls>
<source src="images/earth.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>

Browser Support

The following table will show you the current browser support for the HTML muted Attribute.

Desktop
Edge Chrome Firefox Opera Safari
181511156
Tablets / Mobile
Chrome Firefox Opera Safari Samsung Webview
181414614.4

Last updated by CSSPortal on: 29th March 2024