how to play audio control in html code example
Example 1: how do you play audio files on html
<audio src="sound.mp3" autoplay></audio>
Example 2: 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>