Audio html5

16 / Jan / 2011 by Umar 0 comments

Audio tag is a html 5 element. You can play audio file on web page without any third party plug-in. This will work only on html5 compliant browser.

Flash player is widely used to play audio and video files on web. There are some third party plug-ins likes Flash Player, QuickTime, Real Player etc available for this. The main disadvantage of Third party plug-ins is that we need to download client side browser.

Audio tag is embeded in HTML:
[groovy]
<audio src="audio.ogg" controls="controls">
Your browser does not support the audio element.
</audio>
[/groovy]

Use Attribute in audio tag

Attribute Value Description
autoplay autoplay The start playing audio.
controls controls Controls is display as a play
button.
loop loop The audio will start over again, whenis finished.
preload auto
metadata
none
Audio should be loaded when the page
loads.
src url Defines the URL of the audio to play

Support browser

Browser
FireFox 3.6+
Safari 5+
Chrome 6
Opera 10.5+
IE 9(beta)

Umar Pahat
Umar [at] intelligrape [dot] comAudio tag is a html 5 element. You can play audio file on web page without any third party plug-in. This we work only on html5 compliant browser support.

FOUND THIS USEFUL? SHARE IT

Tag -

Audio HTML5

Leave a Reply

Your email address will not be published. Required fields are marked *