C H A P T E R 9
<canvas> tag itself is only a container for graphics, the way a
<header> is a container for text for structural or textual elements on a web page.
<canvas> HTML element supports all the global attributes including ID and class, but adds two other attributes: width and height. These attributes take pixels as the type so a tag
<canvas id="can" width="300" height="300"></canvas>, will produce a canvas of 300 × 300 pixels.
In this chapter I talk about how to do the following.