HomeMenu
Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

audio

Description

The audio element for HTML represents a sound or audio stream.

Syntax

HTML

<audio attribute-name="attribute-value"></audio>

Attributes

Global

NameValueDescription
autoplayautoplay | emptyAutomatically play when the page is loaded
controlscontrols | emptyDisplay the controls
crossoriginanonymousSends crossorigin request without credentials
use-credentialsSends crossorigin request with credentials
looploop | emptyInstructs the UA to seek back to the start of the audio stream upon reaching the end
mutedmuted | emptyRepresents the default state of the audio stream, potentially overriding user preferences
preloadauto | emptyHints to the UA that optimistically downloading the entire audio stream is considered desirable
metadataHints to the UA that the user is not expected to need the audio stream, but that fetching its metadata (duration and so on) is desirable
noneHints to the UA that the user is not expected to need the audio stream, or that minimizing unnecessary traffic is desirable
srcURIURL for the audio stream

Examples

1 · autoplay

2 · controls

3 · crossorigin

4 · loop

5 · muted

6 · preload

7 · src

8 · Content