HTML5 has tags for graphics like:
There are certain differences between the two:
1. SVG is resolution independent while canvas is resolution dependent.
2. SVG supports event handlers while canvas doesnot support event handlers
3. SVG is suited for larger redering area while canvas doesn't have that capability.
4. SVG is not suited for game application while canvas is suited for graphic intensive games.
var element = document.getElementById("demo");
var graphic = element.getContext("2d");
element.font = "30px Arial";
element.strokeText("See the change.......",10,50);
Hope this will make you understand more about graphic tag.