What is SVG and Canvas in HTML | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 12

What is SVG and Canvas in HTML

unable to understand

2nd Sep 2018, 3:10 PM
Purab Gupta
Purab Gupta - avatar
4 Answers
+ 11
SVG stands for Scalable Vector Graphics and is a language for describing 2D-graphics and graphical applications in XML and the XML is then rendered by an SVG viewer. 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. Rei: Please quote your sources. https://www.tutorialspoint.com/html5/html5_svg.htm
2nd Sep 2018, 3:40 PM
Mradul Uttam
Mradul Uttam - avatar
+ 6
It is a drawing tool where you kind of use instructions in the form of special elements to tell your web browser to move some sort of imaginary pen.
4th Sep 2018, 12:20 PM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
+ 4
hey purab svg and canvas both can be used for making graphics while svg is not used much , canvas can be seen a lot in interactive stuff like games and making shapes in svg is very hard and in canvas its easier but it requires a slight knowledge of javascript
5th Sep 2018, 3:01 PM
Code master
+ 3
SAG stands for Scalable Vector Graphics and is a language for describing 2D-graphics and graphical applications in XML and the XML is then rendered by an SVG viewer. Most of the web browsers can display SVG just like they can display PING, GIF, and JPG. The HTML <canvas> element is used to draw graphics, via JavaScript more details you go to this websites https://www.tutorialspoint.com/What-is-the-difference-between-SAG-and-HTML 5-Canvas https://www.w3schools.com/html/html5_svg.asphttps://www.w3schools.com/html/html5_canvas.asp
8th Sep 2018, 9:52 AM
deepak sharma
deepak sharma - avatar