Loop attribute is used for reputation of audio or music. It repeats audio file again, until you do not click any controls. It supports only Boolean value either true or false. If it is available in audio tag, music file will be repeated automatically.loop attribute:
|loop||Boolean||If it is presented in audio tag. Music will repeat itself again and again.|
Declaration syntax of loop attribute in HTML5.
|<audio src="URL" controls loop>Content</audio>|
<!DOCTYPE html >|
<title>Title of document</title>
<p><b>Audio tag Example.</b></p>
<p><b>Implementation of loop attributes in HTML5.</b></p>
<audio src="a1.mp3" controls loop >
Browser does not support audio tag.
It is new. It is not present in HTML4.01.
Posted on: September 4, 2010 If you enjoyed this post then why not add us on Google+? Add us to your Circles