Home >
Article > Web Front-end > An introductory tutorial for drawing SVG vector graphics using HTML5_html5 tutorial tips
An introductory tutorial for drawing SVG vector graphics using HTML5_html5 tutorial tips
WBOYOriginal
2016-05-16 15:45:592307browse
VG stands for Scalable Vector Graphics, a language for describing 2D graphics. Graphics applications are written using XML, which is then rendered by an SVG reader program.
SVG is mainly used for vector type charts, such as pie charts, two-dimensional charts in X, Y coordinate systems, etc.
SVG became a W3C recommendation on January 14, 2003. You can view the latest version of the SVG specification on the SVG Specification page.
View SVG files Most web browsers can display SVG, just like they can display PNG, GIF, and JPG graphics. IE users may need to install Adobe SVG Reader to be able to view SVG in the browser.
Embed SVG in HTML5 HTML5 allows us to embed SVG directly using the __ tag, the following is a simple syntax:
XML/HTML CodeCopy content to clipboard
<svgxmlns="http://www .w3.org/2000/svg">
...
svg>
HTML5 - SVG Circle Here is an HTML5 version of an SVG example, using the tag to draw a circle:
In the latest version of FireFox with HTML5 enabled this results:
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn