PDA

View Full Version : Html Codes for Music



Jules09
10-21-2008, 11:58 PM
I am wanting to add music to a webpage just as links. I found this code before but i dont remember where. I have the music uploaded to my webpage all I need to do is link to it from there. Can anyone help?????

Nile
10-22-2008, 12:07 AM
I don't know what you want. Do you want to embed it on the page so you can see the player on the page and play, and listen to the music.
Basic Code:


<embed src="song.wav" />

More info Here (http://www.tizag.com/htmlT/music-code.php).
OR
Link to the music. Which is very easy:


<a href="music/song.wav">Music here!</a>

TheJoshMan
10-22-2008, 02:52 AM
and if you want to force download of the media file, rather than open with default media player or media plugin, you could use something similar to this...

http://elouai.com/force-download.php


HOWEVER, take extra care to read through the warnings very thoroughly. This could pose potential threats to your site's security if used improperly.