Categories

Oct 24, 2019 in HTML

Q: What is the canvas element in HTML5?

1 Answer

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.    

</canvas>
Click here to read more about HTML
Click here to read more about Insurance

Related questions

Madanswer
Oct 23, 2019 in HTML
Feb 11 in HTML
Oct 23, 2019 in HTML
...