How to make music play on your website, embed my code in your page

       Ask mastersworld

how do I embed music in to a webpage so it plays automatically

embed music in to html so your visitors can here your tunes, give them a choice

I need my web page to play background music (.wav) or whatever, but i can't use java, the page needs to work in simple browsers the sound should be a background one, so you don't see a player

For the 2 options below you will need to use the code view.

The easiest way I know to have music play when a webpage opens is to embed it so go to the code and enter the below line. The code I am showing you below does not give them a choice of listening to it. All they can do is lower there volume down if they do not want to hear it

<embed src="the name of your music song or tune here"> <noembed> <bgsound src="yourmusic.mid"> </noembed>

The problem with the code above is that some people will find that annoying. When we are surfing the net it might be that all we want is the information like I am giving you now. How would you feel if when you came to my site I made you listen to a song I was singing. Now that would cause you some frustration :)


What we could do is give the people who visit our site the option of listening to our music. So if you enter the code below they will have to click play. I find this option better.

The code below gives them the choice of listening to it
<a href="the name of your music song or tune here">Click here to play music </a>

Does your PC play up, maybe you need it setup

Rednal computer support



Now if your thinking about putting music on your site make sure you do not break any copyright laws for your country. There are plenty of free music which you can have on your website. Simply use Google to search for it so open up Google and type in something like free music for my website.


If you are just starting out at creating your own website then you could download some free software called Amaya. You can find some tutorials for Amaya by using Google just type in something like amaya tutorials like in the link below. You might even find some of my own tutorials there :)

Below is a short list of some tutorials on this site

Learn about Control Panel Options How do I set the date and time in windows 7
Change your background image in windows 7 windows 7 keyboard features (delay rate, repeat rate,)
How to hide and unhide a drive (letter) Stop your children turning off your PC
Windows 7 black screen of Death fix How do I adjust the volume on windows 7
Create a password for Windows 7 user account How to change the primary mouse button in windows 7
Remove a password from Windows 7 user account How to create a user account in windows 7
Switch between users (without logging someone off) How do I use windows defender
Set a static IP address in a private LAN Turn off windows 7 firewall
Go wireless with Windows 7 Turn windows 7 updates on
Change the name of your computer in Windows 7 How to disable automatic restart in windows 7





page, embed, html, web,



If this tutorial has helped please leave feedback by clicking this link