Posting Audio Files in HTML
Ever wanted to add audio to your website. Well there happens a way to do that using html code. What you’re going to want to do first is make sure that your audio file is in the same page as the rest of your website. If it’s not then this isn’t going to work. Then in whatever HTML editing program you’re using you’re going to have to decide where on your website you want to put your audio. Then what you’ll want to do is put in this little bit of code:
<audio controls="controls" height="50px" width="100px"> <source src="YOURSOUND.mp3" type="audio/mpeg" /> http://YOURSOUND.mp3 </audio>
Now all you have to do is change all the parts that say “Your Sound” to what ever the name of your file is. If you do it right you should get something that looks like this.
Congrats you can now embed audio into html.