Home  »  HTML   »   canvas

An empty element for plotting drawing using javascript. Many primitive objects and images as well as videos can be rendered on canvas.

height

represents the height of the canvas

  • number - default value is 150.
width

represents the width of the canvas.

  • number - default value is 150.

HTML Canvas Example:

Edit Example