audio muted Attribute - HTML CSS HTML Tag

HTML CSS examples for HTML Tag:audio

Description

The muted attribute is a boolean attribute to set if the audio output should be muted.

In XHTML, the muted attribute must be defined as <audio muted="muted">.

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
<body>

<audio controls muted>
  <source src="your.ogg" type="audio/ogg">
  <source src="your.mp3" type="audio/mpeg">
  Your browser does not support the audio element.
</audio><!--from   w  ww  .  ja va2 s .c o  m-->

</body>
</html>

Related Tutorials