How do i add music to my webpage?

Embedding music file in webpage?

  • I need to add background music to my webpage. I know that i can use the embed tag as follows: <EMBED src="song.mp3" autostart=true hidden=true volume="25%" loop="true"> However in this case, song.mp3 is on my system. Where do I upload it, so that i can add it to my webpage ? Plz help

  • Answer:

    You need to upload it to the same server directory as your HTML file. If it's not on a server, the MP3 has to be in the same directory as the HTML file. You can change the MP3's directory by changing src. I suggest you don't use Embed, but instead you use HTML5's audio tag. Links: http://www.w3schools.com/html5/html5_audio.asp - HTML5 Audio Tag http://www.w3schools.com/html/html_sounds.asp - HTML Embedding

Confused... at Yahoo! Answers Visit the source

Was this solution helpful to you?

Other answers

Where did you keep your web page? In the same directory. It is called as document base. There only you have to keep. If you knoww that mp3 file is elsewhere in the Internet you can add to src field as: src="http//www.xyz.com/song,mp3"

James Bond

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.