A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://webplatform.github.io/docs/html/elements/bgSound below:

bgSound · WebPlatform Docs

bgSound Summary

The bgsound element (<bgsound>) instructs the browser to load and play a sound file while the user is on that page. Don’t use it. Use the audio element instead.

Overview Table
DOM Interface
HTMLBGSoundElement
Examples

If you want to use sound, please use the audio element:



<audio autoplay id="bgsound">
 <source src="http://media.w3.org/2010/07/bunny/04-Death_Becomes_Fur.mp4"
         type="audio/mp4">
 <source src="http://media.w3.org/2010/07/bunny/04-Death_Becomes_Fur.oga"
         type="audio/ogg; codecs=vorbis">
 <p>Your user agent does not support the HTML5 Audio element.</p>
</audio>
<button type="button"
        onclick="document.getElementById('bgsound').pause();">
  Stop background sound
</button>
Notes Remarks

The <bgSound> element can appear anywhere within the document. This element is not rendered. This element does not require a closing tag. Do not use it! In HTML5 the <bgSound> is described as “non-conforming feature”.

Standards information

There are no standards that apply here.

HTML information

{

See also Related articles Audio Attributions

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4