McJeff's HTML 101 Sound

To add background sound to a web page, you must add two (2) lines of HTML code to ensure that the sound works in both Netscape and Internet Explorer

For Internet Explorer
<bgsound src="sound.mid" hidden="true" autostart="true"loop="1">

For Netscape
<embed src="sound.mid" hidden="true" autostart="true" loop="1">


You can link to a sound file too.

<a href="513.wav"> Play Sound </a>
You can use .WAV and .MID files. .MID files are smaller and quicker to load, but will sound a little different on each persons computer. Due to different sound cards.

HTML 101 Sound

NEW Background collection Over 10,000 Free online NEW

Class 1|Class 2|Class 3|Class 4
Class 5|Class 6|Class 7|Class 8

Sponsored by

McJeff's Technical Solutions(copyrights)1997