This browser-specific element is not recommended. Authors should generally find an alternative way to accomplish the same task while adhering to all best practices, or simply do without it if it is unimportant.

The void HTML <bgsound> element, or background sound, is an Internet Explorer-specific element that associates a background sound with a page. It is possible to write this element with a self-closing tag (<bgsound />). However, since this element is not part of a standard, making it XHTML-like will not make it validate.


  • balance - This attribute defines a number between -10,000 and +10,000 that determines how the volume will be divided between the speakers.
  • loop - This attribute indicates the number of times a sound is to be played and either has a numeric value or the value infinite.
  • src - This attribute specifies the URL of the sound file to be played, which must be one of the following types: .wav, .au, or .mid.
  • volume - This attribute defines a number between -10,000 and 0 that determines the loudness of a page's background sound.

HTML example:

<bgsound src="HTML_Music.wav" loop="infinite"> 

See Also

Ad blocker interference detected!

Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.