C H A P T E R  10

Audio and Video

This is perhaps the simplest of all the chapters so far; the information here will enable you to program your HTML5 web application to render audio and video without Adobe Flash or other custom code, by using the <audio> and <video> tags and their elements.

The examples in this section are short and to the point, but the features provided by these new tags will allow you to combine a little bit of GPS to create an interactive tour for the Grandview Avenue sample app.

First I'll provide you with a short overview of these new tags.

Overview of the Audio and Video Tags

Let's take a look at the elements and attributes of the new <audio>, <video>, <source> and <embed> elements.


The <audio> tag supports .wav, ...

Get Learn HTML5 and JavaScript for iOS now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.