Canvas

Canvas Tutorials

Canvas Methods and Properties

Canvas Introduction

Canvas Intro

 

 

The HTML < canvas > element is used to draw graphics on a web page. This is usually done through JavaScript. It is only a container for graphics. When we have to draw something, we must use scripting. It offers several different methods for drawing shapes, texts, images, etc.

 

Canvas properties are:-

 

  • It can be used to draw Text.
  • It can be used to draw Graphics.
  • It can be used for Animations.
  • It can be interactive i.e, respond to different events.
  • It can be used in games.

 

For your Information:-

 

The < canvas > element must have an id attribute so it can be referred to by JavaScript. The width and height attribute is necessary to define the size of the canvas.

Code Explanation

All Tutorials related to Canvas Tutorials

All Sections related to Canvas