The audio element adds a standard way of supporting audio on an HTML page without plugins. This element can play a sound file or an audio stream. The audio element currently supports three formats: Ogg Vorbis, MP3, and Wav. The control attribute is used to add play, pause and volume controls. Here is an example that shows how the audio control is used:
By the same token, the video element adds support for videos on an HTML page without plugins. There are two supported video formats for the video element: Ogg and MPEG 4. An example for the video control will look like the following:
Please check back soon, as we'll be covering HTML 5's new elements in the conclusion to this article.
| DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware. |