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

<bgsound>

By , About.com Guide

< 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
About.com Special Features

Holiday Central

What to eat, where to go, fun things to do and how to save money on the perfect gifts. More >

Family Tech Center

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

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

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

All rights reserved.