HTML5 Audio

Previously we uses flash to play audio files.Now HTML5 support a new element called Audio.It will give web developer much controls to do funny stuffs with audio.No need to use flash any more!

<audio controls>
<source src="horse.ogg" type="audio/ogg">
<source src="horse.mp3" type="audio/mpeg">
 <!-- add your fallback solution here. Like you can add flash here for older browser-->
 <p>Oh! Your browser does not support the HTML5 audio element.</p>
</audio>


Internet Explorer 9+, Firefox, Opera, Chrome, and Safari support the element.
For more detials about html5 audio you can visit this post Playing audio files with HTML5.

0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply