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>
</audio>
</>
src attribute defines the address of the media. controls attribute adds controls in the media.
Attribute values
All possible values of accept attributeThe 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
The tags that support accept attribute<video> tag
-
video tag adds video in a page. It supports muted attribute.
-
<video src="files/Hummingbird.mp4" controls muted> </video>
Try</> <audio> tag
-
audio element embeds the audio or sound in a page. It also supports muted attribute.
-
<video src="files/Hummingbird.mp4" controls muted> </video>
Try</>
Next Previous
Was this article helpful?