The HTML <video> muted Attribute is used to specify the audio output of the video is muted, it is a Boolean attribute.
Syntax:
<video muted>
Example:
<!DOCTYPE html>
<html>
<head>
<title>
HTML Video muted Attribute
</title>
</head>
<body style="text-align:center">
<h1 style="color:green">
GeeksforGeeks
</h1>
<h2 style="font-family: Impact">
HTML Video muted Attribute
</h2>
<br>
<video id="Test_Video"
width="360"
height="240"
controls muted>
<source src="samplevideo.mp4"
type="video/mp4">
</video>
</body>
</html>
Output:
Supported Browsers: The browsers supported by HTML <video> muted Attribute are listed below:
- Google Chrome 30 and above
- Edge 12.0 and above
- Internet Explorer 10.0 and above
- Firefox 11.0 and above
- Apple Safari 5.0 and above
- Opera