Answers for "html play sound"

5

play a sound wiith js

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

play audio in javascript

var audio = new Audio('audio_file.mp3');
audio.play();
Posted by: Guest on May-20-2020
1

how to embed audio in html

<audio controls>
  <source src="name.mp3" type="audio/mp3" />
</audio>
Posted by: Guest on May-06-2020
7

how do you play audio files on html

<audio src="sound.mp3" autoplay></audio>
Posted by: Guest on March-15-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
1

play audio source on html

<audio controls>
  <source src="myAudio.mp3" type="audio/mpeg">
  <source src="myAudio.ogg" type="audio/ogg">
  <p>Your browser doesn't support HTML5 audio. Here is
     a <a href="myAudio.mp4">link to the audio</a> instead.</p>
</audio>
Posted by: Guest on February-17-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language