LambeauBear.com Title


HTML Tip- Adding Sound To Your Page

Here is how to add sound to the background of your Web Page so it will play upon entering your page. Netscape and Microsoft's Internet Explorer use different commands for this.

However, since the newer versions of Internet Explorer support the Netscape sound, I reccomend you use the Netscape sound code listed here for adding background sound. Since it gives people visiting your site the ability to turn the music off.

How It Will Look





Usage Notes

To loop the sound you may add loop="true" for continuous sound. Or loop="number" for the times you would like the sound to play.

If you wish the sound controls to be hidden on your web page,replace hidden="false" with hidden="true".

There are several types of sound files available with the most common being wav, mp3, and midi files. Mp3 files tend to be too large to load quickly and midi files tend to sound very artificial. Wav files will offer a good balance between file size and sound quality. The key is to remember that you are setting up your page for a wide audience, so that while that midi sound file of Chuby Checkers "The Twist" may sound good to you; ask yourself if you really think it will go over with the majority of the people who will be viewing your page.


|Close Window|