HTML and CSS Reference
Getting started with <canvas>: shapes, images, and text
markup for it is similar to an <image> element in that you can specify a
width and a height; but it has starting and closing tags that can enclose
fallback content, and it doesn't reference an external source:
<canvas id="mycanvas" width="320" height="240"
style="outline: 1px solid #999;">
Your browser does not support the canvas element.
In a browser that doesn't support <canvas> the fallback content is dis-
played, as in this screenshot.
You might have a static image as
the fallback if it could
adequately present some of the
information that would be
displayed in <canvas> In
supporting browsers. Or, if you
were particularly ambitious, you
could use an alternative
rendering method such as Flash.