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

audio

Description

The audio HTML element 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

!doctype

a

abbr

address

area

article

aside

b

base

bdi

bdo

blockquote

body

br

button

canvas

caption

cite

code

col

colgroup

data

datalist

dd

del

details

dfn

dialog

div

dl

dt

em

embed

fieldset

figcaption

figure

footer

form

h1

h2

h3

h4

h5

h6

head

header

hgroup

hr

html

i

iframe

img

input

ins

kbd

label

legend

li

link

main

map

mark

menu

meta

meter

nav

noscript

object

ol

optgroup

option

output

p

param

picture

pre

progress

q

rb

rp

rt

rtc

ruby

s

samp

script

search

section

select

slot

small

source

span

strong

style

sub

summary

sup

table

tbody

td

template

textarea

tfoot

th

thead

time

title

tr

track

u

ul

var

video

wbr

Web Hypertext Application Technology Working Group (WHATWG)

HomeMenu