audio
elementcontrols
attribute: Interactive content.src
attribute: zero or more track
elements, then transparent, but with no media element descendants.src
attribute: one or more source
elements, then zero or more track
elements, then transparent, but with no media element descendants.src
preload
autoplay
mediagroup
loop
muted
controls
[NamedConstructor=Audio(), NamedConstructor=Audio(in DOMString src)] interface HTMLAudioElement : HTMLMediaElement {};
An audio
element represents a sound or audio stream.
Content may be provided inside the audio
element; it is intended for older Web browsers which do not support audio
, so that legacy audio plugins can be tried, or to show text to the users of these older browsers informing them of how to access the audio contents.
In particular, this content is not intended to address accessibility concerns. To make audio content accessible to the deaf or to those with other physical or cognitive disabilities, authors are expected to provide alternative media streams and/or to embed accessibility aids (such as transcriptions) into their media streams.
The audio
element is a media element whose media data is ostensibly audio data.
The src
, preload
, autoplay
, mediagroup
, loop
, muted
, and controls
attributes are the attributes common to
all media elements.