Basic Html Sounds



Sound on pages is real simple to do. Sounds are either in .mid or .wav. There is 2 ways to put a sound in either <embed> or <bgsound>.

The embed will work for all browsers where the bgsound sometimes doesnt work for Netscape. know what to do.

In order for the browser to know how many times you want the wav or midi to play you have to put in a value.

For embedded the values are:

AUTOSTART=TRUE
   This will play your sound 1 time when the browser opens

LOOP=Value   This tells how many times the browser is to play your sound. If you set to 50 it will play 50 times. If set to -1 it will play continously.

HIDDEN=TRUE   This will hide the controls

Embed Example:

    <embed src="http://www.angelfire.com/games3/spades/finalcountdown.gif" autostart="true">

Background sound can also be added with the <bgsound>. But this is usually only supported by Internet Explorer. Also you can only use the loop with this.
Bgsound Example:

    <bgsound src="http://www.angelfire.com/games3/spades/finalcountdown.gif" loop="-1">

Now that you've mastered the basic sound tags on to other parts....below is links to different parts of html...just click on a link and it will take you there.

Text
Fonts
Sound
Lists
Images
Links
Tables
Basic Html