Techcss
Untitled Document

HTML Audio

You could embed a music file on your web page for your visitors to listen to.

The Latest HTML5 <Audio> tag

This is the best solution to use HTML5 code and you don't need an external api plug-in.
Browser Support: IE 9+, Safari 3.1, Mozilla Firefox 21.0(Windows only), Chrome, Opera

Example:
<html>
<head></head>
<body>
<audio controls>
<source src="support/applause-1.mp3" type="audio/mpeg">
<source src="support/applause-1.mp3" type="audio/ogg">
<embed height="50" width="100" src="support/applause-1.mp3">
</audio>
</body>
</html>

Output:


Running with 3rd party web player

With Yahoo Web player api
Browser Support: Any

<html>
<head></head>
<body>
<a href="http://techcss.com/mods/html/support/applause-1.mp3">Play MP3</a>
<script type="text/javascript" src="http://webplayer.yahooapis.com/player.js"></script>
</body>
</html>

Output:

Play MP3