HTML <bgsound> Tag

❮ Previous Reference Next ❯

Deprecated: HTML5 Not Supported


<bgsound src="sound1.mid">

<bgsound src="" loop="infinite">


This Internet Explorer element associates a background sound with a page.

Warning: Do not use this! In order to embed audio in a Web page, you should be using the <audio> element.

Standard Syntax

<bgsound src="URL" loop="number">

Browser Support



Value Description
balance This attribute defines a number between -10,000 and +10,000. and volume will determine.
loop This attribute indicates the number of times a sound is to be played.
src This attribute specifies the URL of the sound file to be played, file must be one of the following types .wav, .au, or .mid.
volume This attribute defines a number between -10,000 and 0
❮ Previous Reference Next ❯