The < canvas > Element

The <canvas> tag is used to draw graphics by using the JavaScript. The <canvas> tag is only a container for graphics. Basically this tag is used for graphical representation with the help of javascript.

There are some attributes of <canvas> element:-

height
width
You will learn more about it in further chapters.

Scroll to Top