Sr.No. | Canvas | Svg |
---|---|---|
1 | Single elements similar to |
Multiple graphical elements, which become the part of the page's DOM tree |
2 | Suitable for larger amount of objects or smaller surface, or both. | Suitable for smaller number of objects or larger surface, or both. |
3 | Raster based (composed of pixel). | Vector based (composed of shapes). |
4 | Poor scalability. Not suitable for printing when its come to higher resolution. Pixelation may be occur. | Better scalability. Can be printed with high quality at any resolution. Pixelation may not occur. |