Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
  • HTML5 - SVG

    • 0
    • 1
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 289
    Comment on it

    SVG is used for graphs like Pie charts, 2D graphs in X,Y coordinate system. It stands for Scalable Vector Graphics and it is a method for describing graphics in xml and then xml is rendered by SVG viewer.

    Using SVG in HTML5:
    We can use SVG by <svg></svg> tag in HTML5.


    <svg xmlns="">

    Following is an example that will show how to draw a circle using svg:

    <!DOCTYPE html>
             #circlesvg {
                position: relative;
                left: 50%;
                -webkit-transform: translateX(-20%);
                -ms-transform: translateX(-20%);
                transform: translateX(-20%);
          <title>Circle using SVG</title>
          <meta charset="utf-8" />
           <h2 align="center">Circle using SVG HTML5</h2>
           <svg id="circlesvg" height="300" xmlns="">
               <circle id="greencircle" cx="30" cy="30" r="40" fill="green" />

 0 Comment(s)

Sign In

Sign up using

Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: