Author Topic: Give some of the difference between SVG & <Canvas>?  (Read 45 times)

mizganmasani

  • Newbie
  • *
  • Posts: 12
  • Welcome to Digital Marketing Forum!
    • View Profile
Give some of the difference between SVG & <Canvas>?
« on: July 30, 2017, 11:44:43 pm »
Give some of the difference between SVG & <Canvas>?

Kajal

  • Hero Member
  • *****
  • Posts: 2473
  • Welcome to Digital Marketing Forum!
    • View Profile
<Canvas> is an element that manipulates two-dimensional (2D) pixels while Scalable Vector Graphics works in 2D and three-dimensional (3D) vectors. Essentially, <Canvas> is to SVG as Photoshop is to Illustrator.

travelowebseo

  • Sr. Member
  • ****
  • Posts: 336
  • Welcome to Digital Marketing Forum!
    • View Profile
    • https://www.traveloweb.com
Re: Give some of the difference between SVG & <Canvas>?
« Reply #2 on: September 11, 2017, 01:53:24 am »
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. In SVG, each drawn shape is remembered as an object.

Hexton Bee Company

  • Full Member
  • ***
  • Posts: 118
  • Welcome to Digital Marketing Forum!
    • View Profile
Re: Give some of the difference between SVG & <Canvas>?
« Reply #3 on: October 14, 2019, 01:15:19 pm »
The<canvas> element is a container for graphics. SVG gives better performance with smaller number of objects or larger surface. Canvas gives better performance with smaller surface or larger number of objects. SVG is vector based and composed of shapes.

 

Digital Marketing Forum is a do-follow forum, post and discuss IT topics here and get dofollow signature. Discuss about SEO, SMO, Directory Submission, 301 redirection, robots, social bookmarking, Web design and development.