Q
What is the difference between and ?
-
A
They are the same
-
B
is a bitmap
-
C
is a bitmap drawn with JavaScript (no DOM for its shapes); is vector graphics with each shape in the DOM
-
D
scales without losing quality
Correct Answer:
C. <canvas> is a bitmap drawn with JavaScript (no DOM for its shapes); <svg> is vector graphics with each shape in the DOM
Explanation:
Canvas suits games and heavy rendering. SVG suits scalable, interactive diagrams.