<audio>
The audio element embeds a sound or audio stream player in the document.
Syntax
<audio src="url" controls></audio> Examples
<audio controls>
<source src="/song.ogg" type="audio/ogg">
<source src="/song.mp3" type="audio/mpeg">
Your browser does not support audio.
</audio>
Output
Renders an audio player with play, seek, and volume controls.
Notes
Provide multiple <source> formats for broad support. Autoplay with sound is blocked by browsers; require a user gesture or use muted.
Browser & runtime support
| Environment | Since version |
|---|---|
| chrome | 4.0 |
| firefox | 3.5 |
| safari | 4.0 |
| edge | 12 |