Oct 24, 2019 in HTML
Q: What is the canvas element in HTML5?

1 Answer

0 votes
Oct 24, 2019
The <canvas> element is a container that is used to draw graphics on the web page using scripting language like JavaScript. It allows for dynamic and scriptable rendering of 2D shapes and bitmap images. There are several methods in canvas to draw paths, boxes, circles, text and add images. For Example:

<canvas id="myCanvas1" width="300" height="100" style="border:2px solid;">    

Your browser does not support the HTML5 canvas tag.    

Click here to read more about HTML
Click here to read more about Insurance

Related questions

0 votes
Feb 11, 2020 in HTML