HTML Audio

HTML AUDIO: HTML5 provides a method to embed the audio file into a webpage by using HTML5. Before HTML5 audio files is used to play on the browser with the help of plug-ins such as flash etc. 

  Syntax:
<audio controls>
      <source src="address" type="file type">
</audio>
Example:
<audio controls>
    <source src="johny-johny.mp3" type="audio/mp3">
</audio>
Output:



ADVERTISEMENT
ADVERTISEMENT