Get Started
841

Q: What is the purpose of canvas in HTML?

  • Show Answer
  • Workspace

Answer :
Explanation :

Canvas is an element that is used for the graphics for the web page. It uses JavaScript to bring the graphics functionality live. It allows easy way to draw the graphics and use different types of tools to create drawing on the web page. Canvas is just a rectangular area that controls the pixel of every element that is used in the web page. Canvas uses methods like paths, circles, etc. The canvas element will be used as follows: The canvas element includes id, width and height settings and with the javascript it gets used like:

The Most Comprehensive Exam Preparation Platform

Get the Examsbook Prep App Today