A couple of days ago we posted an introduction to HTML5 and briefly covered some of the content we’ll be outlining in this series. Today’s post, which is the second in the series of four, will take a look at how to use six of the new elements in HTML5: canvas, article, audio, video, meter, and mark.
Keep in mind that HTML5 is not exactly ready for widespread use – so don’t go changing anything on your site quite yet. Be assured that HTML5 is in fact coming soon, therefore these concepts may prove useful in the near future.
The Canvas Element
The <canvas> element is a new container for graphics. Note that the canvas is merely that, an area where graphics can be placed. The <canvas> element should contain only two attributes: width and height. Here’s an example: