Publishers of technology books, eBooks, and videos for creative people

Home > Articles > Web Design & Development > HTML/XHTML

  • Print
  • + Share This
From the author of Controls


As was mentioned earlier, the controls attribute on both the audio and video elements allow you to tell the browser to add a default control set. Unfortunately, each browser has implemented the controls in their own way, and while largely offering the same functionality, they all look completely different.

Should you wish to have a uniform look and feel to your media controls, HTML5 also comes with a useful JavaScript Media API that allows you to do just that. You can use the usual HTML elements such as hyperlinks and buttons, style them how you like with CSS, and then hook them up to the audio and video media via the Media API.

A full description of this Media API, what's available in it and how to use it, can be seen in my book HTML5 Multimedia: Develop and Design.

  • + Share This
  • 🔖 Save To Your Account