Your Guide to Professional
Web Site Design and Development

HTML Tips
HTML Codes
Web Development
Web Design Tips
JavaScript Codes
216 Web Safe Colors
CSS Tutorial
JavaScript Tutorial
ASCII Character Codes

Offering a guide to professional web site design, web page design and web design guidelines

Open Directory Projectfree ebooksfree articles
web site design development internet marketing and promotion tutorials

| Web Site Development | HTML Codes | HTML Tips | Web Design TipsJavascript Snippets | 216 Safe Colors | Symbols | CSS Tutorial | JavaScript Tutorial |

webmaster resources

Adding Audio (Sound) to a Web Page

 

You can add audio (sound) to your web page that will be compatible with both Internet Explorer and Netscape Navigator. Add the following code to the HTML of your web page where you would like the control panel to display.

<EMBED src="yourfile.mid" autostart="true" loop="false" hidden="false">

<noembed>
<bgsound src="yourfile.mid" loop="1"> </noembed>

Change the text indicated in red to your sound file.

The "autostart" determines whether or not the music will play when the page loads. "True" specifies that the music will start on load and "False" specifies that music will not start on load.

The "loop" determines how the music should be played. "False" specifies that the music should not loop and will play it through one time. "True" specifies that the music should loop and play continuously. It is highly recommended that you leave this set on false.

The "hidden" specifies whether or not the music's control panel should be displayed. "True" specifies that the control panel should be hidden. "False" specifies that the control panel should be displayed. It is highly recommended that you leave this set on false. This will enable your visitors to stop the music if they prefer.

 More Web Design Tips