CHAPTER 14

Adding Video and Audio

Do you want to add multimedia to your web pages? Adding video enables you to tell a story, feature a product, or provide interactivity to your viewers. Some concepts can be presented more effectively using moving pictures rather than static words and photos. By embedding audio, you can add background music to your pages to add ambiance.

HTML5 includes new tags for adding video and audio to your website. This chapter covers how to add multimedia with these tags, turn on player controls for audio and video, and provide alternative file formats to make the user experience as optimal as possible for all users.

image

Understanding ...

Get Teach Yourself Visually™ HTML5 now with the O’Reilly learning platform.

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