HTML5 Simple Audio Example

Play music and sound effects with JavaScript and HTML5 audio tags.

Tap for Music
Tap for Effect

Include audio in online games and Web pages with HTML5.

HTML5 audio tags receive sound files assigned with MP3, OGG, WAV, and AAC formats. With this example the browser determines the sound format to play.

Tap the Audio Example button below to see the slightly more complicated Audio Example where JavaScript determines which sound format to play.

More HTML5 Tutorials by Topic

Copyright © 2015 Seven Thunder Software. All Rights Reserved.