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: In this example, we are using the above-explained approach.
HTML
<!DOCTYPE html>
< html >
< body >
< h1 >Muted Video</ h1 >
< video controls muted width = "600px" >
< source src =
type = "video/mp4" >
</ video >
</ body >
</ html >
|
Output:

Whether you're preparing for your first job interview or aiming to upskill in this ever-evolving tech landscape,
GeeksforGeeks Courses are your key to success. We provide top-quality content at affordable prices, all geared towards accelerating your growth in a time-bound manner. Join the millions we've already empowered, and we're here to do the same for you. Don't miss out -
check it out now!
Last Updated :
16 May, 2023
Like Article
Save Article