This is an archived thread from the StopByte developer forum — browse all archived threads. StopByte is now a payments & ecommerce toolkit — check out our free calculators.

Stopbyte

What is Canvas?

What is Canvas Element? What is the use of Canvas Element in HTML5? Give an example of Canvas element?

HTML canvas is a rectangular area (no border and no content) on a HTML page. IHTML element is used to draw graphics via JavaScript on a web page. We use Canvas methods for drawing paths, boxes, circles, text, and adding images. HTML Canvas can be used in animation and gaming application. It has a great feature for graphical data presentation with an imagery of graphs and charts.