How to draw a hollow circle in SVG?

HTMLWeb DevelopmentFront End Technology

To draw a hollow circle in SVG, use the <circle> element. For that, use fill=”none” and draw the outline.

SVG stands for Scalable Vector Graphics and is a language for describing 2D-graphics and graphical applications in XML and the XML is then rendered by an SVG viewer. Most of the web browsers can display SVG just like they can display PNG, GIF, and JPG.


You can try to run the following code to learn how to draw a hollow circle in SVG

Live Demo

<!DOCTYPE html>
      <title>HTML5 SVG Hollow Circle</title>
      <svg id="svgelem" height="200" xmlns="">
         <circle cx="100" cy="50" r="40" stroke="black" stroke-width="7" fill="none" />
Published on 08-Feb-2018 06:57:18