in HTML by
Is audio tag supported in HTML 5?

1 Answer

0 votes
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.




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.    


Instead of koyal.mp3, you can pass any mp3 file name.

Related questions

0 votes
asked Jan 29, 2021 in HTML by rajeshsharma
+1 vote
asked Jan 28, 2021 in HTML by SakshiSharma
+1 vote
asked Oct 24, 2019 in HTML by SakshiSharma