HTML muted Attribute
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 | |||||
![]() |
![]() |
![]() |
![]() |
![]() |
|
18 | 15 | 11 | 15 | 6 |
Tablets / Mobile | |||||
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
18 | 14 | 14 | 6 | 1 | 4.4 |
Last updated by CSSPortal on: 29th March 2024