Skip to content
Related Articles

Related Articles

Improve Article
Save Article
Like Article

HTML | <bgsound> tag

  • Difficulty Level : Basic
  • Last Updated : 27 Aug, 2019

The HTML <bgsound> tag is used to play the soundtrack in the background, when you leave the page behind and open a new tab this tag will continuously play the track in the background.
This tag is not for other browsers except the Internet Explorer. It does not display any graphical interface just played the track in the background.


<bgsound src="">


  • src: This attribute holds the path of the tack that will be played in the background.
  • loop: This attribute holds a number that the number of times the track will play looping around.

Below example illustrate the HTML <bgsound> tag:

<!DOCTYPE html>
      HTML <bgsound> Tag
        h1 {
            color: green;
        <h2>HTML <bgsound> tag</h2>
        <bgsound src=
         <p>please plugin speaker/headphone to listen to the sound.</p>


Supported Browsers: The supported browsers by HTML | <bgsound> tag are listed below:

  • Internet Explorer

My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!