« Previous
Next »
The HTML <audio> Element
To play an audio file in HTML, use the <audio> element:
Output 1:
HTML <audio> Autoplay
Output:
Add muted after autoplay to let your audio file start playing automatically (but muted):
Output 3:
« Previous
Next »