You are here: Reference > HTML > attributes > volume (bgsound)

volume attribute (bgsound)

Browser support:
Specifies the volume for the background sound.
JavaScript page for this attribute: volume. You can find other example(s) there.

Possible values:

Integer that sets the volume of the media, in the range from -10000 to 0. Zero is the maximum output volume.
Default: this attribute has no default value.

Example HTML code 1:

This example illustrates the use of the volume attribute:
<bgsound id="myBgSound" src="budgie.wav" loop="-1" volume="-2000">
Did you find this example helpful? yes no

Supported by tags:

External links:

User Contributed Comments

Post Content

Post Content