What is Canvas?


(Rekha) #1

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


(Anjani Kumari) #2

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.