in HTML by (32.2k points)
What is the canvas element in HTML5?

1 Answer

0 votes
by (23.9k points)
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 Sep 6 in HTML by Robindeniel (20.8k points)
0 votes
asked Dec 2, 2020 in HTML by Sandeepthukran (555 points)
0 votes
...