SVG stands for Scalable Vector Graphics
SVG is used to define graphics for the Web
SVG is a W3C recommendation
<svg>
ElementThe HTML <svg> element is a container for SVG graphics.
SVG has several methods for drawing paths, boxes, circles, text, and graphic images.
Following is the HTML5 version of an SVG example which would draw a circle using <circle> tag −
output:
Following is the HTML5 version of an SVG example which would draw a rectangle using <rect> tag −
See this example:
Output:
Following is the HTML5 version of an SVG example which would draw a line using <line> tag −
See this example:
Output:
Following is the HTML5 version of an SVG example which would draw a polygon using <polygon> tag −
See this example:
Output:
Following is the HTML5 version of an SVG example which would draw a polyline using <polyline> tag −
See this example:
Output: