The <audio> tag in HTML

You can read about the HTML <audio> tag.

The <audio> tag is fine if you just want to put a playable sound in a web page,
but if you want sophisticated control of the sound, other methods are better (see the links below).

Here's an example with an audio source identified and controls shown.

Other ways to play audio in a Web page:

Play an HTMLAudioElement in JavaScript

Use an HTMLAudioElement as a source AudioNode in WebAudio

Buffer and play a sound in Web Audio

This page was last modified April 2, 2016
by Christopher Dobrian,