Which HTML5 element is used for drawing graphics on the fly ?
2026
Which HTML5 element is used for drawing graphics on the fly ?
Answer: B. <canvas> — The correct HTML5 element for drawing graphics on the fly is <canvas>. It provides a resolution-dependent bitmap canvas which can be used for rendering…
- A.
<svg>
- B.
<canvas>
- C.
<graphic>
- D.
<draw>
Attempted by 304 students.
Show answer & explanation
Correct answer: B
The correct HTML5 element for drawing graphics on the fly is <canvas>. It provides a resolution-dependent bitmap canvas which can be used for rendering graphs, game graphics, or other visual images on the fly.
Loading lesson…