Background Music HTML Code

Background Music Html Code is easy to add to a webpage and I have included the code below. The best music file to use is a midi music file. The file extension for this file ends in .mid.

Simply upload the mdi file to your server and edit your html code. You need to add this code on a blank line before the closing head tag.

<bgsound src=”http://www.myweb siteaddress.com\yourmidifile.mid” loop=”infinite”>

Your html code should look something like this:

<html>
<head>
<title>Your webpage title</title>
<bgsound src=”http://www.myweb siteaddress.com\yourmidifile.mid” loop=”infinite”>
</head>
<body bgcolor=”white” text=”black” link=”blue” vlink=”purple” alink=”red”>
your webpage content
</body>
</html>

A word of caution just be a little careful the size of your midi file. If the file size is too big it might take a little time to download.

Tip - Do not flood all of your webpage’s with music files. Most people that visit your web site are only interested in viewing
your content. Its an interesting way to get your visitors attention.

Tags:

No Comments

Comments are closed.