HTML Infos : audio

Description

Audio stream

Doctypes

Attributes

NameValueDescription
Attribute's nameAttribute's valueAttribute's description
autobuffertrue | falseIndicates the browser to load the audio event if it does not autoplay.
autoplaytrue | falseIf set to true, the audio will start playing as soon as it is ready.
controlstrue | falseIf set to true, the user is shown some controls, such as a play button.
looptrue | falseIf specified, indicates that the audio is to seek back to the start upon reaching the end.
srcurlDefines the URL of the audio file.

Examples

<audio src="file.wav">
    <p>Alternative text</p>
</audio>
English | Français