6. Styling Media Elements with CSS

Because the audio and video elements are valid HTML elements, you can treat them the same way as other elements, such as div, header, article, and section. This, of course, means that the audio and video elements can be styled via CSS.

No longer do you need to obtain a Flash player that has the correct or similar colours so that the player fits in with your website’s colour scheme (well, except for non-HTML5 browsers of course). Now you can don your CSS hat and use your skills to make these elements look the way you want them to.

As well as the usual CSS declarations that you are familiar with, a number of new ones have surfaced with the advent of CSS3—the latest version of CSS. In this chapter, you’ll learn ...

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

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