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.
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.