Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • How to use SVG in html

    • 0
    • 1
    • 0
    • 1
    • 0
    • 0
    • 0
    • 0
    • 294
    Comment on it

    Hello Readers!

    In this blog we will discuss about SVG.
    Scalable Vector Graphics (SVG)? is a type of image format, which is based on XML. SVG makes a vector graphic quality in such a way that the graphic quality will not become dull if you zoomed or resized it.

    SVG are XML text files, they can be scripted searched and compressed and it can be created and edited with any text editor.

    There are two types of SVG:

    1. animation
    2. interactive


    An example of SVG Shapes:-

    <svg width="200" height="80">
      <rect width="200" height="80" style="fill:Yellow;stroke-width:2;stroke:#ccc;" />
    </svg>
    


    Note:-

    1) SVG is similar as Flash technology with limit.

    2) SVG has some predefined shape Circle <circle>, Rectangle<rect>, Polyline <polyline>, polygon <polygon>, Ellipse <ellipse>, Line <line> and Path <path>.


    An example of svg animation.

    <svg>
        <rect width="200" height="80" style="fill:Yellow;stroke-width:2;stroke:#ccc;"  >
            <animateTransform attributeName="transform" type="scale" from="0" to="1" dur="15s"/>
        </rect>
    </svg>
    

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
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: