How to create a basic empty HTML canvas ?
A canvas is a rectangular area on an HTML page, and by default, a canvas has no border and no content.
<canvas> Content... </canvas>
It is recommended to have an id attribute (to be referred to in a script), and a width and height attribute to define the size of the canvas. To add a border, use the style attribute.
Example: The following code demonstrates the empty canvas.
My Personal Notes arrow_drop_up
Please Login to comment...