in HTML by
Q:
Is audio tag supported in HTML 5?

▼ Show 1 Answer

0 votes
by
Yes. It is used to add sound or music files on the web page. There are three supported file formats for HTML 5 audio tag.

mp3

WAV

Ogg

Let's see the code to play mp3 file using HTML audio tag.

<audio controls>    

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

Your browser does not support the html audio tag.    

</audio>    

Instead of koyal.mp3, you can pass any mp3 file name.
HTML
Learn More with Madanswer
...