Jump to content

  • Free consultations and support
  • Live chatClick Here for Live Chat
  • Call ico 1888-906-1888
    Phone support: Open

    Ready for your call :)

    Our business hours:

    Mon — Fri, 2am — 8pm (EST)

    US & EU support teams

    Phone support: Closed

    We are back in: 1h 20m

    Our business hours:

    Mon — Fri, 2am — 8pm (EST)

    US & EU support teams


Embedding an MP3 in HTML

embedding mp3 in html

  • Please log in to reply
 

#1 DesPro

DesPro

    Junior Member

  • Designer
  • 26 posts

Posted 25 June 2013 - 03:01 PM

To Embed an MP3 in HTML do the following

1. select an MP3 flash player that allows HTML5 embed element.
2. Following the MP3 flash player documentation, create a .swf file that holds the MP3 information, and save your file.
3.Open your HTML editor and make a new HTML5 document with this code:
<!doctype html>
<html>
<head>
<title>MP3 Embed</title>
</head>
<body>
</body>
</html>
4.Save the file as with the .html extension
5. using the HTML5 embed element, embed the MP3 file. Put the code <embed src="yourfilename.swf" /> between the body tags in your HTML5 document. Then save your HTML5 document.
6. Double click on the .html file to test the webpage.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users