How to Make MP3 URLs

If you are developing and programming a website, then you may want to embed an MP3 URL. To do this, you need to know the MP3 code to generate and insert into the site. As of 2011, HTML5, a standard in web programming, features built-in support for MP3 usage in Web pages, eliminating the need for a complex set of scripts or a Flash file to embed an MP3 and distribute the song. With HTML5, you easily can embed the audio file with an accompanying MP3 link.

Instructions

    • 1

      Click on "Start," then "Programs." Click on "Accessories," then "Notepad."

    • 2

      Press "Ctrl" and "O" simultaneously. Locate and open your HTML Web page.

    • 3

      Type the following code into the space where you want the MP3 URL and player:

      <audio controls="controls">

      <source src="audiofile.mp3" type="audio/mpeg" />

      </audio>

      Replace "Audiofile" with the MP3 file name.

      This inserts an audio player playing the MP3 specified.

    • 4

      Type the following code if you also want to generate a download link:

      <a href="audiofile.mp3"> Download the song</a>

      Replace "Audiofile" with the file name, and the link text as necessary.

Related Searches:

References

Comments

You May Also Like

  • How to Embed an MP3 Player With HTML

    Create an HTML5 file. Open a new document in your text editor and make a basic HTML5 page using this code. <!doctype...

  • How to Get MP3 URLs

    To stream your favorite music online, the music must be stored or hosted on a server that generates URLs. The typical online...

Related Ads

Featured