+ 1
What is svg nd canvas?
3 Antworten
+ 4
What is HTML Canvas?
The HTML <canvas> element is used to draw graphics, on the fly, via JavaScript.
The <canvas> element is only a container for graphics. You must use JavaScript to actually draw the graphics.
Canvas has several methods for drawing paths, boxes, circles, text, and adding images
What is SVG?
SVG stands for Scalable Vector Graphics
SVG is used to define graphics for the Web
SVG is a W3C recommendation
The HTML <svg> element is a container for SVG graphics.
SVG has several methods for drawing paths, boxes, circles, text, and graphic images.
+ 1
view this for getting exact answer
https://www.w3schools.com/html/html5_svg.asp
+ 1
The HTML <svg> element is a container for SVG graphics. ... Most of the web browsers can display SVG just like they can display PNG, GIF, and JPG. The HTML <canvas> element is used to draw graphics, via JavaScript. The<canvas> element is a container for graphics
Differences Between SVG and Canvas. SVG is a language for describing 2D graphics in XML. Canvas draws 2D graphics, on the fly (with a JavaScript). SVG is XML based, which means that every element is available within the SVG DOM.
ANSWER IN CSS
SVG is a language for describing 2D graphics in XML. Canvas draws 2D graphics, on the fly (with a JavaScript). SVG is XML based, which means that every element is available within the SVG DOM. You can attach JavaScript event handlers for an element.
SVG is a language for describing 2D graphics in XML. Canvas draws 2D graphics, on the fly (with a JavaScript). SVG is XML based, which means that every element is available within the SVG DOM. You can attach JavaScript event handlers for an element.
https://www.w3schools.com/html/html5_svg.asp