HTML5 Canvas or SVG: Choose Wisely

0
9
views

In 2004, the introduction of HTML5 also brought us the JavaScript based drawing method Canvas. The vector-based SVG format has been a thing since 2001. However, it only became truly successful over the past few years, in parallel to HTML5. Both formats have their advantages and disadvantages. But which of the two is the better choice for which situation? Where are their strengths and weak points? JavaScript vs. XML-Syntax The biggest difference between HTML5 Canvas and SVG is the markup, or rather, the coding. Ultimately, only a single element (“<canvas>”) is being marked up via HTML5. The entire content of the…
HTML5 Canvas or SVG: Choose Wisely