Skip to content
Related Articles

Related Articles

How to mute video using HTML5 ?

View Discussion
Improve Article
Save Article
  • Difficulty Level : Basic
  • Last Updated : 10 May, 2021
View Discussion
Improve Article
Save Article

The purpose of this article is to mute video using HTML5.

Approach:

Video Tag is new to HTML5. Users can use muted attributes in video tags to mute a video.

The muted attribute is a boolean attribute. When present, it specifies that the audio output of the video should be muted.

Syntax:

<video controls muted>

Example:

HTML




<!DOCTYPE html>
<html>
<body>
  <h1>Muted Video</h1>
 <!-- Video mute -->
 <video controls muted width="600px">
  </video>
</body>
</html>


Output:

My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!