Up to now, playing audio in a web browser has been a bit of a black art. Traditionally there are several ways to embed a sound in a web page — some work better than others, and many only work if you happen to be using the right browser with the right plugin.
The ubiquity of the Flash plugin has helped to a large extent, since Flash makes it easy to embed audio in a way that works with most browsers. However, this doesn’t help with browsers such as Safari on the iPhone and iPad, which don’t support Flash at all.
In short, it’s all a bit of a mess.
Fortunately, HTML5 looks set to make life easier for us developers, thanks to its
In this tutorial I’ll show you how to embed sounds in a page with the