Play Audio in HTML5



Imaging you got a browser that support html5 (chrome,firefox,opera etc). its easy to play an mp3 file with ur browser


1. Save mp3 file in a folder ( say audio.mp3)

now create an html file with following code, save in same directory


<audio controls=”audio1″>
<source src=”audio.mp3″ type=”audio/mpeg” />

Open the html file in chrome



abhilash, is a programmer by profession and a technology addict with a passion towards browsing , shopping and imaging . My views may be biased on reviews. all images and videos are copyrighted to respective owners.

Add comment

Your Header Sidebar area is currently empty. Hurry up and add some widgets.