audio
Description
Syntax
HTML
<audio attribute-name="attribute-value"></audio>
Attributes
Name | Value | Description |
---|---|---|
autoplay | autoplay | empty | Automatically play when the page is loaded |
controls | controls | empty | Display the controls |
crossorigin | anonymous | Sends crossorigin request without credentials |
use-credentials | Sends crossorigin request with credentials | |
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
1 · autoplay
2 · controls
3 · crossorigin
4 · loop
5 · muted
6 · preload
7 · src
8 · Content
Links
Elements
- !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