in HTML by
Q:
What is the canvas element in HTML5?

1 Answer

0 votes
by
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>

Related questions

0 votes
asked Feb 11, 2020 in HTML by rahuljain1
0 votes
asked Feb 11, 2020 in HTML by rahuljain1
...