Advertisement
Home Open Editor ❯

HTML muted Attribute

Example

<audio controls muted>
  <source src="audio/demo.mp3" type="audio/mpeg">
  <source src="audio/demo.ogg" type="audio/ogg">
  Your browser does not support the audio tag.
</audio>

Try this code ❯

Meaning

The muted attribute that specifies the default setting of the audio contained in the video or audio elements.


Standard Syntax

HTML: <element muted>
XHTML: <element muted="muted">


Applies to:

The muted attribute can be used on the following element:

Element Attribute
<audio> muted
<video> muted

Advertisement

Attribute Values

Value Description
muted This is a boolean attribute, the presence of a boolean attribute on an element represents the true value, and the absence of the attribute represents the false value.

More Examples

Example

<video width="340" height="260" controls muted>
  <source src="demo/video.mp4" type="video/mp4">
  <source src="demo/video.webm" type="video/webm">
  Your browser does not support the video tag.
</video>

Try this code ❯

Home Open Editor ❯
Advertisement