1.

Which of the following statement is true?(a) Canvas Contains built-in animations(b) SVG needs scripts to draw elements(c) In canvas, drawing is done with pixels(d) SVG don’t support to event handlersI had been asked this question during an online interview.My question is based upon HTML5 Introduction in section HTML Fundamentals of HTML

Answer»

The correct ANSWER is (c) In canvas, DRAWING is done with pixels

To EXPLAIN: In SVG drawing is done with vectors and it SUPPORT event handlers. Canvas doesn’t contains any built-in-animations and drawing is done with pixels.



Discussion

No Comment Found

Related InterviewSolutions