Last updated: 2026-09-12
<audio>The AUDIO Element
Embeds an audio player; often paired with source for multiple formats to ensure compatibility.
| Category | Links & Media |
|---|---|
| Content Model | Embedded content |
| Allowed Parents | Any element that accepts flow content |
| Content Tag | Yes — requires closing </audio> tag |
| Status | Standard |
📝 Syntax
<audio controls>audio content</audio>
⚙️ Attributes
This element supports the global attributes plus the following:
| Attribute | Value | Description |
|---|---|---|
src | Audio file URL (for a single source; use source for multiple). | |
controls | Shows play/pause, volume and other controls. | |
autoplay | Starts playing on load (usually needs muted). | |
loop | Replays from the start when finished. | |
muted | Starts muted by default. | |
preload | Preload hint: none/metadata/auto. |
▶ Example
Edit the code below and see the live result in the playground:
🌐 Browser Support
| Browser | |||||
|---|---|---|---|---|---|
| <audio> | ✓ v1 | ✓ v12 | ✓ v1 | ✓ v1 | ✓ v1 |
| Supported in all major browsers | |||||
Tip: Add controls to show playback UI; autoplay usually requires muted to work (browser policy).
🏷️ Related Tags
💡 Related Cases
More case studies coming soon — check back later.