Want to put sound on your web page?
Adding sound slows down a web page and may hurt site traffic. Also, consider
using shorter songs or “MIDI” songs instead.
Here is how it is done.
Type the <BGSOUND> tag between the <HEAD> tags. For
example, if you want to use a file called Song.mp3 as the background sound file
and this file is saved in a folder named Music, your <BGSOUND> tag looks similar
to the following:
<HEAD> <bgsound src="music/song.mp3" loop="-1"> </HEAD>
If the Song.mp3 file is stored in the root instead of a specific folder in your Web, the <BGSOUND> tag looks similar to the following:
<HEAD>
<bgsound src="song.mp3" loop="-1">
</HEAD>
The following table explains the Loop values that you
can set for the <BGSOUND> tag:
Loop Value Description
-----------------------------------------------------------------------
-1 The background sound will play repeatedly as long
as the page is open.
0 or 1 The background sound will play one time.
n The background sound will play n times, where
n is a number greater than 1.