Archive for Multimedia

How to add music to your website

If you want to add an music to your website, you can do so by using the embed tag.  First upload your audio file to your web server, so it’s accessible like: http://www.start-a-site.com/music-file.avi  after that, you can use the embed code below:

<embed name=”player1″
src=”http://www.start-a-site.com/music-file.avi”
width=”300″
height=”90″
loop=”false”
autostart=”false”>
</embed>

of course you do know that you have to change the “src” with your own audio file path.

You can also link to a music file with the code below, by doing this, when the visitor clicks this link their appropriate media player will be active with your audio file playing.

<a  href=”http://www.start-a-site.com/music-file.avi”>Click to listen to audio file</a>


( November 5, 2009 at 12:52 am) · Filed under Coding, General, Multimedia, , , , , , , , ,

Comments