audio controls Attribute - HTML CSS HTML Tag

HTML CSS examples for HTML Tag:audio

Description

The controls attribute is a boolean attribute to set if browser would show the control buttons for the audio.

An <audio> element with browser default controls:

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
<body>

<audio controls>
  <source src="your.ogg" type="audio/ogg">
  <source src="your.mp3" type="audio/mpeg">
Your browser does not support the audio element.
</audio><!-- w  ww.  j a  va 2 s . c  o m-->

</body>
</html>

Related Tutorials