1.

What is the use of Scalable Vector Graphics (SVG) in HTML5?

Answer»

SVGs or SCALABLE Vector GRAPHICS are used in HTML 5 to display 2-D graphics and its applications in XML which is later on RENDERED by an SVG viewer. The SVG element is used to contain SVG graphics.

Example

<!DOCTYPE html>
<html>
<body>

<svg width="100" height="100">
  <circle cx="50" CY="50" r="40" stroke="green" stroke-width="4" fill="yellow" />
</svg>

</body>
</html>



Discussion

No Comment Found