HTML 5: The Markup Language (ARIA Edition)

audioaudio stream # T

An audio element represents an audio stream.

Content model #

audio.elem.flow =
(audio.attrs.src | source*), (normal-character-data & common.elem.flow*) & audio.attrs
audio.elem.phrasing =
(audio.attrs.src | source*), (normal-character-data & common.elem.phrasing*) & audio.attrs

Attribute model #

Element-specific attributes #

autoplay =
Instructs the UA to automatically begin playback of the audio stream as soon as it can do so without stopping.
autobuffer =
Instructs the UA that downloading the entire audio stream optimistically is considered worthwhile.
controls =
Instructs the UA to expose a user interface for controlling playback of the audio stream.
loop =
Instructs the UA to seek back to the start of the audio stream upon reaching the end.
src = uri
The URL for the audio stream.

Assertions #

Tag omission #

An audio element must have both a start tag and an end tag.

Permitted contexts #