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.
Attributes
balance- This attribute defines a number between-10,000and+10,000that 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 valueinfinite.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,000and0that determines the loudness of a page's background sound.
HTML example:
<bgsound src="HTML_Music.wav" loop="infinite">