how to play audio on html code example
Example 1: how do you play audio files on html
<audio src="sound.mp3" autoplay></audio>
Example 2: how to add an audio in html
<audio controls>
<source src="name.mp3" type="audio/mp3" />
</audio>
<audio src="sound.mp3" autoplay></audio>
<audio controls>
<source src="name.mp3" type="audio/mp3" />
</audio>