1.
What is the primary purpose of the HTML element?
2.
How can you access a Canvas element in JavaScript?
3.
What does the getContext method do in Canvas?
4.
Which rendering context is commonly used for 2D graphics in Canvas?
5.
What does the fillRect method do in Canvas?
6.
Which property sets the fill color for drawing operations in Canvas?
7.
How do you set the dimensions of a Canvas element in HTML?
8.
What happens if a browser does not support the element?
9.
Which event is commonly used to trigger drawing operations on a Canvas element?
10.
How can you draw a circle on a Canvas element using JavaScript?