Think of it like the "stage" in Scratch -- it's an area in which all our cool graphics are going to occur. I've told HTML to make it pink, just so it's easy for me to see where it is.
You can choose a different colour if you like, but not just any colour - there are defined acceptable colour names. For now, stick to simple colours.
Note that <canvas> expects to have a </canvas>. Why? Because that's what the designers of HTML thought would make a lot of sense.
We're going to need some way to refer to our canvas later. In the same way that school kids have names (so you can tell which one the teacher is shouting at), so HTML elements have an "id". I've given mine an 'id' of 'myCanvas'.
|