<canvas> elements is only a _________ to the graphics.
Correct answer
B. container
12 views
B. container
12 views
The <canvas> element is only a container for graphics. On its own it draws nothing; the actual lines, shapes, text and images are produced by JavaScript through the canvas drawing API, obtained with getContext("2d").
This is the key difference from SVG, where each shape is itself an element in the page.
For more solved questions like this one, see Computer Science MCQs on MCQsExam.com.
Not sure why the answer is B? Ask here and get an explanation.