HTML5 Canvas : Get To Know Canvas
What is canvas?
The <canvas>
tag in HTML5 is used to draw images (via scripts, usually JavaScript). However, the <canvas>
element itself has no drawing ability. It is only a container of graphics. We must use scripts to complete the actual drawing task.
Create canvas element
Add the canvas element to the HTML 5 page and specify the ID, width, and height of the element:
<canvas id="myCanvas" width="200" height="200">
<p>Your browser does not support canvas! </p>
</canvas>