Adding+Music+to+your+Site

=Create a Web Page to match the Mood-=

**Adding the HTML Music Code**

 * Step 1:** Find a music or sound file that you'd like to use. Look in the Common folder/Web Elective and you will find the folders you need. I downloaded mp3 files from [|http://freeplaymusic.com]. These files are copyright free, so OK to use. You can use .mp3 or .wav (wave) music. .MP3 files are larger and will take longer to load than .wav. Copy the folder assigned to you and put it into your web folder.
 * Make sure you have rights to the music file before you use it!**


 * Step 2:** Click on music file and listen to it. Create a simple web page to match the music. Try to match the music with thecolors, images and words you use. Save the web page into the same folder as the music files. **You may need to rename the music file- no spaces or symbols, 7 letters or less (this is very important!).**

with the name of the music. 
 * Step 3**:Now to insert the following HTML code into your site. You'll need to edit it. Replace the word

**Music File Attributes**
After the path to your music file, you'll see a couple of attributes:

The **autostart** attribute tells the song file how to begin. If you have this set to "true", the song file will begin playing automatically when the page loads. If you put in "false", the sound file will not start automatically and the visitor will have to start the song by using their embedded media player.

The **loop** attribute tells the song how many times to play. If you have this set to "true" then it will play over and over again automatically. If you have it set to "false" it will play once and stop.

The **hidden** attribute tells the browser whether or not to hide the media player. It's not a good idea to leave this value at "true" unless you know for sure your visitors don't want to stop the music.

You don't want your music to annoy them to the point they leave because they can't figure out how to turn the music off.

**Adjusting the Size of The Media Player**
You can customize the look of the embedded/default media player on your visitor's PC by adding a //width// and //height// attribute to the code. Be careful as you adjust the size of the player because you can distort it.  Once you have your music file uploaded and coding inserted into your web page, your background music should play when your browser loads. Enjoy!

Information for this page was taken from: []