0 votes
in HTML by
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
0 votes
asked Dec 2, 2020 in HTML by Sandeepthukran
0 votes
asked Feb 11, 2020 in HTML by rahuljain1
...