-->
Showing posts with label svg to draw circle. Show all posts
Showing posts with label svg to draw circle. Show all posts

HTML with SVG to draw circle.

<html>

<head>

    <head>
        <title>
            html with SVG tag. It stands for scalable vector graphics.It is used for vector based graphics in XML. We use this tag for graphics on web/page.
        </title>
    </head>

    <body>
        <svg width="100" height="100">
            <!--we always use svg for image size. If we donot, it takes 0,0 by default-->

            <circle cx="50" cy="50" r="40" stroke="green" stroke-width="15" fill="red" />
        <!--since we are going to draw circle, we use attributes-->
        <!-- here cx is x co-ordinate,cy is y-co-ordinate, r is radius,stroke is boundary color,stroke-width means width of circle outline 
            and fill means color inside circle-->
        
        
        
        </svg>




    </body>


</html>