HTML5 Audio and Video Elements
HTML5 audio and video elements make embedding videos and sound a lot easier. There is no need for flash or silverlight because the browser automatically sizes the video and the rest (buttons for control, % size, start and stop time) can be controlled using HTML and CSS. According to this article Practical Cross-Browser HTML5 audio and video, the author (John Dyer) believes the video tag is a huge improvement from that in HTML4. He goes on to give examples of scripting and how to create buttons to control playback. This image below is an example of the code for times text tracks.
This article called Fallback options in HTML5 Audio and Video Tags can come in handy when trying to implement a video or song and have it work across different browsers. Mozilla doesn’t support MP4 and 3GP files so using these fallback options below, you can give the computer options so that the video can be seen in multiple browsers.
This is all still under development and most likely as technology progresses along with the dependence of easy web access, HTML5 will become the standard practice and these fallback options will be obsolete, but for now, they are good to keep in mind.
This article by Mark Boas, Native Audio in the Browser, focuses on the audio tag and the benefits surrounding this HTML5 feature. Like the video tag, this tag has native playback within the browser. This image below is a helpful chart to see which browsers support what files. Again, fallback options can be used with the audio tag to ensure that the audio works across multiple browsers. It is much like the video tag in this aspect.
The canvas tag is another feature of HTML5 that is a big improvement. What it does is add a layer of grain to an image, which is 70K let’s say, along with a layer of transparency to blend the two, resulting in an image which is significantly smaller in size than what it would be without the canvas tag. This tag not only enables designers to decrease the loading time and size of images, but also allows them to draw, so to speak, within certain areas using pixels. And each pixel can be controlled, according to this article from HTML5 Arena. This image below displays a few examples of what the canvas tag looks like in action.
This article by Dipal Choksi, A Practical Look at the HTML5 Canvas Tag, really breaks it down. He gives a nice, bulleted list of what the canvas tag allows the designer to control. This image below is what he gathers from the canvas element.
All in all, it’s safe to say HTML5 is going to make web design much more intuitive both for designers and web users. The need for extensive mark-up and confusing code language may be coming to a close as developers are constantly discovering ways to make web design simpler and more functional.