Answers for "How to play a sound in html"

5

play a sound wiith js

var audio = new Audio('audio.mp3');
  audio.play();
Posted by: Guest on July-03-2020
0

html sound

<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>
Posted by: Guest on March-14-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language