src attribute (bgsound)
Sets the URL of a sound file to be played.
The bgsound element supports only .mid and .wav media file types.
JavaScript page for this attribute: src. You can find other example(s) there. |
Possible values:
String that sets the URL of the sound file. It can be an absolute or relative path as well. Relative paths are relative to the base URL. The base URL is the location of the current document, but it can be overridden by the base tag.
Default: this attribute has no default value.
Example HTML code 1:
This example illustrates the use of the src attribute:
|
||||
<bgsound src="budgie.wav" loop="-1" balance="10000"> |
||||
|
||||
Did you find this example helpful?
|
Supported by tags:
External links:
User Contributed Comments