HTML CSS examples for HTML Tag:audio
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">.
<!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>