What is the purpose of the canvas element?
A
Creates drawing surface
B
Exposes powerful drawing API to client-side JavaScript
C
Creates drawing surface & Exposes powerful drawing API to client-side JavaScript
D
Creates a rectangular box
Correct Answer: Creates drawing surface & Exposes powerful drawing API to client-side JavaScript
The HTML canvas element is used to draw graphics, on the fly, via JavaScript. The canvas element is only a container for graphics. The canvas element has no appearance of its own but creates a drawing surface within the document and exposes a powerful drawing API to client-side JavaScript.