
The Complete Idiot's HTML Tag Reference
| Index
| Previous Tag: <BDO>
| Next Tag: <BIG>
|
<BGSOUND>
Specifies a sound file to use as a background sound.
Support:
-
HTML Standard | Internet Explorer | Netscape Navigator |
Not supported |
2.0 and later |
Not supported |
Notes:
- Supported sound formats are .MIDI, .wav, and .au.
- This is an Internet Explorer-only tag.
Attributes:
- BALANCE
= Integer
Adjusts the balance between the left and right speakers.
-
Support:
-
HTML Standard | Internet Explorer | Netscape Navigator |
Not supported |
4.0 and later |
Not supported |
Notes:
-
Use values between -10000 (left speaker only) and 10000 (right speaker only). The default value is 0 (balanced).
- CLASS
= "Text"
The style sheet class used by the tag.
-
Support:
-
HTML Standard | Internet Explorer | Netscape Navigator |
Not supported |
4.0 and later |
Not supported |
Notes:
-
You can specify two or more classes; be sure to separate each class name with a space.
- DELAY
= Positive integer
The number of seconds before the sound file starts.
-
Support:
-
HTML Standard | Internet Explorer | Netscape Navigator |
Not supported |
Not supported |
Not supported |
Notes:
-
This attribute lived and died only with Mosaic 3.0.
- ID
= "Text"
An alphanumeric string that uniquely identifies the tag.
-
Support:
-
HTML Standard | Internet Explorer | Netscape Navigator |
Not supported |
4.0 and later |
Not supported |
Notes:
-
Although you can use letters and numbers for the ID, the first character must be a letter.
- LANG
= "Text"
The language used by the tag's attribute values and text content.
-
Support:
-
HTML Standard | Internet Explorer | Netscape Navigator |
Not supported |
4.0 and later |
Not supported |
- LOOP
= Positive integer
The number of times the sound file plays.
-
Support:
-
HTML Standard | Internet Explorer | Netscape Navigator |
Not supported |
2.0 and later |
Not supported |
Notes:
-
If you feel like torturing your visitors by playing the sound file ad infinitum, use LOOP=INFINITE.
- SRC
= "Text"
The sound file to play.
-
Support:
-
HTML Standard | Internet Explorer | Netscape Navigator |
Not supported |
2.0 and later |
Not supported |
Notes:
-
Use either just a file name (if the sound file is in the same directory as the page), a relative name (if the sound file is in another directory), or a full URL.
- VOLUME
= Integer
The loudness of the playback.
-
Support:
-
HTML Standard | Internet Explorer | Netscape Navigator |
Not supported |
4.0 and later |
Not supported |
Notes:
-
Use values between 0 (full volume) and -10000 (no sound).
Example:
<BGSOUND SRC="earsore.mid" LOOP=1>
| Index
| Previous Tag: <BDO>
| Next Tag: <BIG>
|
|