HTML video Tag muted Attribute Tutorial

In this section, we will learn what the muted attribute is and how to use it.

What is muted Attribute in HTML <video> Tag?

When adding HTML <video> element to a webpage, by default, the sound of a video file is unmuted. This means if the video file is autoplayed, it will automatically start to play with sounds on, and this can be annoying sometimes!

But we can add the `muted` attribute to HTML <video> element, and that sets the video player to mute by default when the HTML document is loaded. So no sounds will be heard.

HTML muted Attribute in <video> Tag Syntax:

<video muted> </video>

<video> Tag muted Attribute Values

The `muted` attribute does not take any argument as its value and we only need to add this attribute to the opening tag of HTML <video>.

Example: using muted attribute in HTML <video> tag

See the Pen using muted attribute in HTML <video> tag by Omid Dehghan (@odehghan) on CodePen.


Top Technologies