Dynamic Web Lab

HTML5 Audio

3/4/2013

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!
[php]
<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>
[/php]

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.

Let Us Work Together

Let us Plan Your Website or Digital Strategy Together

Start My Proposal Now →