HTML5 Audio Element

HTML 5 Audio Tag
 
The audio element is used to play sound files or an audio stream in HTML pages. 
 
Audio Element Attributes:
  1. <html>  
  2.     <body>  
  3.         <audio controls="controls">  
  4.             <source src="one.ogg" type="audio/ogg" />  
  5.             <source src="two.mp3" type="audio/mpeg" />  
  6. Your browser does not support the audio element.  
  7.   
  8.         </audio>  
  9.     </body>  
  10. </html>  
autoplay: It specifies that the audio will start playing as soon as it is ready to play and its value is "autoplay"
 
loop: It specifies that controls that the audio will start playing again when it reaches the end.
 
preload: The audio will be loaded at page load and ready to run.
 
url: specify the URL of the audio.
 
control: It is used for adding play, pause, and volume controls.
Next Recommended Reading New Interactive Elements in HTML5