What is the difference between SVG and HTML5 Canvas?

What is the difference between SVG and HTML5 Canvas?

  1. SVG is vector based and composed of shapes whereas Canvas is raster based and composed of pixel.
  2. Canvas gives better performance with larger number of objects whereas SVG gives better performance with smaller number of objects.