Chapter 2. Audio and Video Elements

This chapter introduces <audio> and <video> as new HTML elements, explains how to encode audio and video so you can use them in HTML5 media elements, how to publish them, and what the user interface looks like.

At this instance, we need to point out that <audio> and <video> are still rather new elements in the HTML specification and that the markup described in this chapter may have changed since the book has gone to press. The core functionality of <audio> and <video> should remain the same, so if you find that something does not quite work the way you expect, you should probably check the actual specification for any updates. You can find the specification at http://www.w3.org/TR/html5/spec.html or at http://www.whatwg.org/specs/web-apps/current-work/multipage/ ...

Get The Definitive Guide to HTML5 Video 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.