Posts in current category
May 03, 2021 13:05 HTML5
HTML5 supports inline SVG.
SVG refers to scalable vector graphics (Scalable Vector Graphics)
SVG is used to define vector-based graphics for networks
SVG uses the XML format to define graphics
SVG images do not lose their graphic quality when zoomed in or changed in size
SVG is the standard of the World Wide Web Alliance
SVG is a whole with W3C standards such as DOM and XSL
Compared to other image formats, such as JPEG and GIF, the advantages of using SVG are:
SVG images can be created and modified through the text editor
SVG images can be searched, indexed, scripted, or compressed
The SVG is scalable
SVG images can be printed at any resolution with high quality
SVG can be magnified without decreasing image quality
Internet Explorer 9 Plus, Firefox, Opera, Chrome, and Safari support inline SVG.
In HTML5, you can embed SVG elements directly into HTML pages:
To learn more about the SVG tutorial, visit the SVG tutorial .
SVG is a language that uses XML to describe 2D graphics.
In SVG, each drawing is treated as an object. If the properties of the SVG object change, the browser can automatically reproduce the graphic.
Canvas is rendered pixel by pixel. I n canvas, once the graphic is drawn, it does not continue to receive browser attention. If its position changes, the entire scene also needs to be redrawn, including any objects that might have been covered by the drawing.
The following table lists some of the differences between canvas and SVG.