Using the Embed Method to put sound on a web page:



Here is an example of the tag:

<EMBED src="http://sounds/*.wav">

This tells the browser to place this file on the page right where you placed the tag. You don't have to use a wav file, you can embed a .midi, .aud, and most other sound formats in this way. As you can see, the src="" is asking for the source of the wav file, or its internet address. Just type in the web address of your sound file here.

Now, you can add additional commands to the tag to control the output and appearance of your sound file. Here are some common commands you may wish to use:


width="200"
Tells the browser how wide you wish the sound display to be. Input a number in pixels.

height="10"
Tells the browser how tall you want the sound display to be. Input a number in pixels.

autostart="true/false"
Instructs the browser to begin playing the file automatically once it has been loaded on the page. You can set this value to true or false. The default is false.

loop="true/false"
Instructs the browser to play the file over and over again for as long as someone is on that page, or until the user hits the stop button on the display. You can set this value to true or false. The default is false.

hidden="true/false"
This command tells the browser to hide the sound display so people viewing you page don't see the sound display with the control buttons. The sound plays as though it were just in the background somewhere. You can set this to true or false. The default is false.

Here is an example using multiple commands:

<EMBED src="http://sounds.wav" width="200" height="10" autostart="true" loop="true" hidden="true">