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