Instructions for Creating FirstClass Web Pages
Adding Music to Your Web Page
Karen Bue-Selwood - Instructional Technologist
Click here to contact me.
Today is: Saturday,11 October,2008 04:24:34 AM

Adding background music to your web page is easy.

1.  First you need to find and save the sound file (using a .wav or .midi file format) you want to use.

2.  Then upload your .wav or .midi file to your Home Page folder.

3.  Then enter the following code at the top of your web page, changing "filename.wav" to the name of the .wav or .midi file that you uploaded to your Home Page folder.  The loop = -1 means that the sound will loop continuously.  Put loop = 0 if you want it to play only once.

<bgsound src="filename.wav" loop=-1">

4.  Once you have added the above code, you need to highlight the code and choose the Format menu at the top of the screen > select Style > and then select Literal HTML.  This will hide the text from the viewer and the web browser will interpret it literally (play your sound file).

It is best to keep the files small and, if possible, convert them to midi format.

*Make sure that your use of music on a web page conforms to copyright guidelines and laws.  Look here for a quick and easy-to-use copyright chart for educators.



 Last Modified: 23 October,2007