The audio tag is used to play a sound on the web document. Currently, different browsers support different formats but MP3 is suuported by most browsers. Multiple audio sources can also be defined and the browser can choose the preferred one. The audio tag supports 3 formats - MP3, Wav and Ogg.
Older browsers may not support audio formats and thus a fallback text can also be used to display appropriate message. The failback message can be inserted within the audio tag.
The audio tag supports the global and event attributes.
This is a boolean attribute indicating to automatically play the audio file.
This attribute provides information on the time range the audio has been buffered.
The presence of this attribute indicates the browser to display controls such as volume, seeking and play / pause.
This is a boolean attribute that when specified will restart playing the audio file when completed.
This is a boolean attribute that indicates whether the audio should be muted when started.
This indicates how far the audio file has been played.
This provides data to the browser on how to best deal with the audio file.
Possible values include auto, metadata and none.
This indicates the source of the audio file.
This indicates the playback volume. 0.0 is silent and 1.0 is maximum.
Your browser does not support the <code>audio</code> element.