<audio>
To play an audio file in HTML, use the <audio>element:
Example
<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>
<source src="horse.ogg"type="audio/ogg">
<source src="horse.mp3"type="audio/mpeg">
Your browser does not support the audio element.
</audio>
How It Works
The controls attribute adds audio controls, like play, pause, and volume.
Text between the <audio> and </audio> tags will display in browsers that do not support the <audio> element.
Multiple <source> elements can link to different audio files. The browser will use the first recognized format.


