HTML - attributes - muted

revision:


Content

"muted" attribute : a boolean attribute that mutes the audio output syntax some examples


"muted" attribute : a boolean attribute that mutes the audio output

top

When present, it specifies that the audio output of the video should be muted.
The muted attribute can be used on the following elements: <video> and <audio>


syntax

top

<video muted></video>

<audio muted></video>

To get sound back, click the mute button (to unmute), or remove the muted attribute.


some examples

top
codes:
                    <video style="margin-left: 3vw;" width="320" height="240" controls muted>
                        <source src="../../pics/Wuzhen-20-10_02.mp4" type="video/mp4">
                        Your browser does not support the video tag.
                    </video>
                
codes:
                    <audio style="margin-left: 3vw;"" controls muted>
                        <source src="../../pics/horse.wav" type="audio/wav">
                        Your browser does not support the audio element.
                    </audio>