Adding Sound

READ THIS first.

Sound can be tricky. First you must find the sound. For instance, you may find the sound clip you want at CDNOW. Once you have found the clip, play it in Windows Media format. While it is playing, click on File and click on properties to find the URL of the sound clip. Highlight the entire URL of the clip you are listening to. It will be long. Then use that copied URL with the appropriate tag below. Place this code at top of page under the BODY Tag.

The Background Sound Tag

<BGSOUND> The BGSOUND tag used with:

SRC The format for this attribute is to set it equal to the path and name of the sound file that is to be inlined in the document.
LOOP Sound files can implemented as a background sounds using the LOOP attribute.
DELAY An HTML author can also delay the play of an inline sound for X number of seconds using the DELAY attribute.

For example:

<BGSOUND SRC="*.wav">
Plays the sound file once.
<BGSOUND SRC="*.wav" LOOP=infinite>
Plays the sound file over and over.
<BGSOUND SRC="*.wav" DELAY=10>
Plays the sound file after a 10 second delay.

The Sound Tag

<SOUND> The SOUND tag is used with:

SRC The format for this attribute is to set it equal to the path and name of the sound file that is to be inlined in the document.
LOOP Sound files can implemented as a background sounds using the LOOP attribute.
DELAY An HTML author can also delay the play of an inline sound for X number of seconds using the DELAY attribute.

<SOUND SRC="*.wav">
Plays the sound file once.
<SOUND SRC="*.wav" LOOP=infinite>
Plays the sound file over and over.
<SOUND SRC="*.wav" DELAY=10>
Plays the sound file after a 10 second delay.

The Embed Tag

<embed src> The Embed tag is used with:

SRC The format for this attribute is to set it equal to the path and name of the sound file that is to be inlined in the document.
LOOP Sound files can implemented as a background sounds using the LOOP attribute.
DELAY An HTML author can also delay the play of an inline sound for X number of seconds using the DELAY attribute.

<embed SRC="*.wav">
Plays the sound file once.
<embed SRC="*.wav" LOOP=infinite>
Plays the sound file over and over.
<embed SRC="*.wav" DELAY=10>
Plays the sound file after a 10 second delay.