- Worldstart's Tech Tips Newsletter - http://www.worldstart.com -
How To Add Music To Webpage?
Posted By Tim On September 25, 2012 @ 12:00 PM In Using The Internet,Web Design | No Comments
Nina from PA. writes:
I’m making a few web pages. I’d like to add music. Have no clue how. Can you help?
Thanks, Nina

Music can really add something special to a webpage when it’s done right and fits the mood of the site. Music can be added fairly easy with HTML using the following code: (Tested on Firefox 14, IE 9 and Chrome 21)
<embed name=”MusicNameHere” src=”address/path to the music.extension” loop=”false” hidden=”true” autostart=”true”>
Replace MusicNameHere with name of the file, replace “address/path to the music.extension” with the path and file extension. Loop=True/False will select if the background audio loops. Remove hidden=True and add a width=”xx” and height=”xx” to enable audio controls on the page (replace xx with pixel size, usually 150 width by 60 height for audio.)
<embed name=”TimSample” src=”http://imgsrv.worldstart.com/tim/htmlbgaudio/TimSample.mp3″ loop=”false” hidden=”true” autostart=”true”>
To see an example page with this code running click here [1].
~Tim
Article printed from Worldstart's Tech Tips Newsletter: http://www.worldstart.com
URL to article: http://www.worldstart.com/how-to-add-music-to-webpage/
URLs in this post:
[1] click here: http://imgsrv.worldstart.com/tim/htmlbgaudio/TimSample.htm
Click here to print.