Menu Samaritan's Purse

AUDIO

The audio element represents a sound or audio stream.

SYNTAX

HTML

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

ATTRIBUTES

Global

NAME VALUE DESCRIPTION
autoplay autoplay | empty Automatically play when the page is loaded
controls controls | empty Display the controls
crossorigin How the element handles crossorigin requests
loop loop | empty Instructs the UA to seek back to the start of the audio stream upon reaching the end
muted muted | empty Represents the default state of the audio stream, potentially overriding user preferences
preload auto | empty Hints to the UA that optimistically downloading the entire audio stream is considered desirable
metadata Hints 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
none Hints to the UA that the user is not expected to need the audio stream, or that minimizing unnecessary traffic is desirable
src URI URL for the audio stream

EXAMPLES

AUTOPLAY

CONTROLS

CROSSORIGIN

LOOP

MUTED

PRELOAD

SRC

Web Hypertext Application Technology Working Group (WHATWG)