Answers for "how to write audio source tag in html"

2

how to add audio in html

<audio controls>

  <source src="flag.ogg" type="audio/ogg">

  <source src="flag.mp3" type="audio/mpeg">
  
</audio>
Posted by: Guest on April-02-2021
-1

html audio tag

<audio controls>
<source src="sound.ogg" type="audio/ogg"/>
<source src="sound.mp3" type="audio/mpeg"/>
</audio> 
this will also work in react js & html
Posted by: Guest on February-27-2022

Browse Popular Code Answers by Language