svg- Shape based. Saved as vector graphics in exported PDF files.
canvas- Pixel-based ("dynapic png"). Single HTML element. High performance manipulation of individual pixels. Saved as raster graphics in exported PDF files. Compared to svg, canvas has poor text rendering capability, lack of animation, and mediocre accessibility support
Source Code Pro