Example
<audio src="files/sample.mp3" controls muted>
</audio>
Try </>
Web development courses to make an interactive and responsive website.
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>
Try </>
src attribute defines the address of the media. controls attribute adds controls in the media.
The muted attribute is a boolean type attribute.
It is useful when the video (advertisement) playbacks automatically and automatic audio stream annoys the user.
video tag adds video in a page. It supports muted attribute.
<video src="files/Hummingbird.mp4" controls muted> </video>
Try</>
audio element embeds the audio or sound in a page. It also supports muted attribute.
See the example given above.
Visit video and video tags to know about the media.
Was this article helpful?
Email:
Message:
Get the newsletter