
This is the print version of http://www.quackit.com/html/html_music_code.cfm
HTML Music Codes
You can add HTML music code to your web page using the embed tag. The embed tag isn't actually part of the HTML specification but it is still widely supported.
You can also check out the Music Code Generator.
How to embed an audio file
You can embed a music file into your page using the following HTML code:
<embed name="lostmojo"
src="/web_design/lostmojo.wav"
width="300"
height="90"
loop="false"
autostart="false">
</embed>
This code will present a music console with the appropriate controls like this:
(If you don't see any music controls and don't hear any music, you may need to download a plugin for your browser.)