Adding a song to HTML website is very simple if you know the basic of html page code & some tags!
You need to have your song in Midi, mp3, wav file etc. (you have .MP3 format)
You need a simple link to your music, then add this HTML code to your webpage source code & save it!
Steps to Adding the HTML Music Code
1. Song has to be in midi format because it is a good sound format to use because these files are generally smaller and load quickly. You can also use .mp3 or .wav (wave) music, but keep in mind that if you do go this route, it will take the music longer to load because the file size will be larger.
2. Upload (save) this music file to your web server
3. Now open the web page you want the song to load with. You'll have to insert the following HTML code into your site, but first you'll need to edit it.
HTML Code:
<embed src="musicfile.wav" autostart="true" loop="false">
4. Replace musicfile.wav with the name of the music file you chose to upload to your web server. The code above also assumes you've saved the file in the same location of your homepage (index.html). If you save the file inside a folder on your root then you'd have to change the path slightly.
Bookmarks