Skip to main content

html-tags.com

<audio>

An embedded sound player.

Baseline: Widely available · Media & embedded content

When to use it

With controls, preload='none' so megabytes don't download speculatively, and a transcript adjacent (details works well).

When not to

Never autoplay with sound; provide fallback content with a download link inside the element.

Key attributes

controls
show native UI
preload
none | metadata | auto
loop / muted

Example

<audio controls preload='none'>
  <source src='/media/episode.ogg' type='audio/ogg'>
  <a href='/media/episode.ogg'>Download the recording</a>
</audio>
Source — this snippet needs a fuller context to render.

Authoritative references