Chapter 4. Audio and video


This chapter covers
  • Why audio and video are important on the web
  • Adding audio and video to your web pages
  • Encoding audio and video files for the web
  • Integrating video with other web platform features and content


Native media support is one of the best known as well as one of the most controversial HTML5 features. In this chapter, you’ll learn why HTML5 media support is great, why it’s frustrating, and the practical factors you need to consider when using it.

Audio and video on the modern web

Audio and video are key parts of the modern web. For many sites, video and audio are parts of the content as integral as the text and pictures—and in some cases, they’re more important.

Despite their rising importance, ...

Get Hello! HTML5 & CSS3: A user-friendly reference guide 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.