Copy html code to mp3 using HTMAL 5.
![qa-featured](https://www.techyv.com/sites/default/users/superadmin/qa-featured-300x270.png)
I was wondering if it is possible to copy html code to mp3 using HTML 5. If anybody knows how it is done, then any kind of help would be appreciated.
![](https://techyv.com/sites/default/2016/10/techpedia_logo.png)
I was wondering if it is possible to copy html code to mp3 using HTML 5. If anybody knows how it is done, then any kind of help would be appreciated.
Hello,
Dixon eartha,
I think you are searching for using audio in webpage by HTML code.
<! Doctype html>
<html>
<body>
<audio controls="controls">
 <source src="horse.ogg" type="audio/ogg" />
 <source src="horse.mp3" type="audio/mpeg" />
</audio>
</body>
</html>
Here control attribute adds audio control,like play,pause and volume.
You should have to insert text between <audio> and </audio> tags for browsers that don’t support the <audio> element.
<audio> element allows multiple <source > elements which generally can link to various audio files.
Google chrome 6Â can support Mp3,wav and ogg.
Besides,IE9, safari support MP3
Firefox and opera support wav and Ogg format.