CSS Portal

HTML muted Attribute

☕
Enjoying this site?

Help keep it running with a small coffee donation. Every bit of support is appreciated!

Buy us a coffee
muted
HTML AttributeThis attribute is supported by all modern browsers.
Updated 29th March 2024

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

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>
Open in editor

Browser Support

The following information will show you the current browser support for the HTML muted attribute. Hover over a browser icon to see the version that first introduced support for this HTML attribute.

This attribute is supported by all modern browsers.

Desktop

Chrome
Edge
Firefox
Opera
Safari

Tablets & Mobile

Chrome Android
Firefox Android
Opera Android
Safari iOS
Samsung Internet
Android WebView
-
Supported Unknown Not supported
☕
Enjoying this site?

Help keep it running with a small coffee donation. Every bit of support is appreciated!

Buy us a coffee