Articles → HTML 5 → SVG circle in HTML5

SVG circle in HTML5






Purpose





Syntax


<svg width="" height="">
    <circle cx="" cy="" r="" stroke=" " stroke-width="" fill=" " />
</svg>















Example


<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
   <head>
      <meta charset="utf-8" />
      <title></title>
   </head>
   <body>
      <svg width="100" height="100">
         <circle cx="50" cy="50" r="40" stroke="Yellow" stroke-width="5" fill="green" />
      </svg>
   </body>
</html>



Output


Picture showing the output of SVG circle in HTML5

Click to Enlarge


Browser support


Internet ExplorerFirefoxChromeSafariOperaEdge
9.03.04.03.210.1Yes



Video





Posted By  -  Karan Gupta
 
Posted On  -  Tuesday, June 6, 2017

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250