How to Add a MP3 to My Web Page
With an MP3 file, include audio data, such as songs, on your website to enhance the content for your visitors. Using HTML code, you build the link between your MP3 and page so that a viewer has access to this file on your site. HTML also creates the music player that a viewer can use to control while listening. Add an MP3 file to your own web page by using the text editor included with your computer.
Instructions
-
-
1
Place your MP3 file on a web host in the same folder that you keep your other website files in, and make a note of the location.
-
2
Launch your text editor application and open your web page file.
-
-
3
Place your cursor in the area where you want your MP3 file to be and type in the “embed” code with the address from step one to link it. For example:
<embed src=”http://www.domain.com/song.mp3”></embed> -
4
Add “autostart,” “width” and “height” attributes to control the music player behavior and display. Set “autostart” to “false” so that the user has a choice about when they want to list to the file and assign the “width” to “300” and the “height” to “42” to accommodate a standard size player. For instance:
<embed src=”http://www.domain.com/song.mp3” autostart=”false” width=”300” height=”42”></embed> -
5
Save your file and place it on your web host to publish the MP3 on your page.
-
1