1. Home
  2. Computing & Technology
  3. Web Design / HTML

<bgsound>

By Jennifer Kyrnin, About.com

< Previous | HTML 4.01 Tags / XHTML 1.0 Elements | Next >

Free XHTML 1.0 Class | HTML Validators | Free HTML 4.01 Class

<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:

< Previous | HTML 4.01 Tags / XHTML 1.0 Elements | Next >

Free XHTML 1.0 Class | HTML Validators | Free HTML 4.01 Class

Explore Web Design / HTML

More from About.com

  1. Home
  2. Computing & Technology
  3. Web Design / HTML
  4. HTML and XHTML
  5. XHTML
  6. HTML Tags
  7. The bgsound Element - Play background music on your page - Internet Explorer

©2008 About.com, a part of The New York Times Company.

All rights reserved.