audio

< html‎ | elements
Jump to: navigation, search

audio


W3C Working Draft

Summary

The audio element (<audio>) is used for playing audio files and may display a minimal media player user interface.


Overview Table

DOM Interface HTMLAudioElement

Examples

View live exampleplay a mp3 on webpage

HTML

<audio controls src="http://freedownloads.last.fm/download/533190714/she%2Bso%2Bfly.mp3" type="audio/mp3">
</audio>



Compatibility

Desktop

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic Support 3
3.5
9
10.50
4


MP3 3
Unsupported
9
Unsupported
4


OGG (Vorbis) 3
3.5
Unsupported
10.50
Unsupported


WebM (Vorbis) 6
4
Unsupported
10.60
Unsupported


WAV (PCM) 8
3.5
?
?
4

Mobile

Feature Android BlackBerry Chrome for mobile Firefox Mobile (Gecko) IE Mobile Opera Mobile Opera Mini Safari Mobile
Basic Support 2.3
7.0
18.0
15.0
9.0
11.0
Unsupported
4.0


MP3 2.1
?
?
?
9.0
?
?
3.2


OGG Unsupported
?
?
?
Unsupported
?
?
Unsupported


WAV Unsupported
?
?
?
10.0
?
?
3.2


AAC-LC Unsupported
?
?
?
9.0
?
?
3.2


HE-AAC Unsupported
?
?
?
9.0
?
?
3.2


Compatibility notes

Browser Version Note
Mobile Safari (and WebKit wrappers) Audio is always played using a full screen player.
Mobile (Android, IE, Safari) All Cannot play more than one audio file at the same time.

See also

Related articles

HTML


























  • audio

























… further results


Related pages (MSDN)

  • Audio object
  • How to use HTML5 to Add an Audio Player to your Webpage

Attribution

This article contains content originally from external sources.

Portions of this content come from the Mozilla Developer Network cc-by-sa-small-wpd.svg: Article

Portions of this content come from the Microsoft Developer Network: [Windows Internet Explorer API reference Article]