<audio> in html
snippet in html

how do you play audio files on html

user8853

<audio src="sound.mp3" autoplay></audio>

<audio> in html

user863


 <audio controls>

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

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

 Your browser does not support the audio element.

 </audio>
 

html audio tag

user594


    <audio controls>

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

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

  Your browser does not support the audio tag.

 </audio>