1. Computing & Technology

Discuss in my forum

<bgsound>

By , About.com Guide

<bgsound> Description:

Place music or another sound file in the background of a page. This element is not part of the HTML 4.0 or XHTML 1.0 specification..

<bgsound> Web Browser Support:

<bgsound> Attributes:

All attributes are optional unless indicated.

<bgsound> End Tag:

None. </bgsound> is a singleton tag.

<bgsound> Contents:

None

<bgsound> Valid Context:

The <bgsound> tag is valid within the following tags:
head

<bgsound> Usage:

  • never-ending sound
    <bgsound src=\"soundfile.wav\" loop=\"infinite\">
  • sound file repeats twice
    <bgsound src=\"soundfile.wav\" loop=\"2\">

<bgsound> Special Notes:

  • It is strongly recommended that you avoid use of this tag. It is not part of the HTML/XHTML specification, and may not be supported in future versions of the Internet Explorer browser.
  • The bgsound tag doesn't allow your readers to turn off the music.
  • Remember that what sounds wonderful to you can be very annoying to someone else, and your music may drive away otherwise repeat customers.

More <bgsound> Information:

©2012 About.com. All rights reserved.

A part of The New York Times Company.