MCQ Single Best Answer Easy

QWhat is the canvas element's function?

ID: #5253 Javascript Graphics and Rendering MCQ 122 views
Question Info
#5253Q ID
EasyDifficulty
Javascript Graphics and Rendering MCQTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • 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: Option C

Explanation

The HTML canvas element is used in JavaScript to draw graphics on the fly.
The canvas element is nothing more than a container for graphics.
The canvas element does not have its own appearance, but it creates a drawing surface within the document and exposes a powerful drawing API to client-side JavaScript.

Share This Question

Challenge a friend or share with your study group.