3. Using Audio

Adding native audio to your web document using HTML5 multimedia couldn’t be easier. Whether you wanted to share sound snippets, voice recordings, or your own music with users on the Internet, the ability to do so was always available. But now you can share audio without having to rely on third-party plugins being installed.

Chapter 2 introduced you to the HTML5 elements and attributes that allow you to add audio to your web document. Now it’s time to explore how this is actually done. This chapter explains, with the aid of examples, how you can use these elements and attributes.

But let’s first take a brief look at the audio file formats that are available for use and how you might convert existing audio from one format to another ...

Get HTML5 Multimedia: Develop and Design now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.