Some cookies are necessary to make this site and our content available to you. Other Cookies enable us to analyse and measure audience and traffic to the site. Cookies are also used by us, advertisers, ad-tech providers and others to develop and serve ads that are more relevant to your interests. To consent to the use of Cookies and proceed to the site, click Accept below. If you wish to withdraw consent later you will find a link in the footer Cookie Choices. For more information: Privacy Policy.

Adding Music

There is only one way you can add music. If the user viewing your page is using Internet Explorer, your music can play in the background when the page loads.

First you need to have your music file saved somewhere on the Internet. Simply replace the text "" with the URL of your music file.

You can use bgsound src files with the extensions of:

  • .mid
  • .midi
  • .wav
  • .mp3

Creating a player

<bgsound src="">

Replace the "" part of the code with the URL of your own file on the Internet.

This will make a sound when the page loads for Internet Explorer users.

Go to Previous Lesson Go to Next Lesson