audio loop Attribute - HTML CSS HTML Tag

HTML CSS examples for HTML Tag:audio

Description

The loop attribute is a boolean attribute to set if the audio will start over again, every time it is finished.

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

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
<body>

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

</body>
</html>

Related Tutorials