How to create a circle with the use of <circle> tag?
Submitted by: AdministratorThe <circle> tag is used for creating circles.
The tag requires the x and y coordinates as center point of the circle and radius of the circle.
Following is the example to draw a circle:
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg width="100%" height="100%" version="1.1"
xmlns="http://www.w3.org/2000/svg">
<circle cx="200" cy="100" r="50" stroke="black"
stroke-width="2" fill="blue"/>
</svg>
The circle's center point is at (200,100) coordinate and the radius is 50.
The 'stroke' attribute draws the border of the circle with 2 as width.
The circle is filled with blue, as the 'fill' attribute is assigned with color blue.
Submitted by:
The tag requires the x and y coordinates as center point of the circle and radius of the circle.
Following is the example to draw a circle:
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg width="100%" height="100%" version="1.1"
xmlns="http://www.w3.org/2000/svg">
<circle cx="200" cy="100" r="50" stroke="black"
stroke-width="2" fill="blue"/>
</svg>
The circle's center point is at (200,100) coordinate and the radius is 50.
The 'stroke' attribute draws the border of the circle with 2 as width.
The circle is filled with blue, as the 'fill' attribute is assigned with color blue.
Submitted by:
Read Online SVG Job Interview Questions And Answers
Top SVG Questions
☺ | What is SVG-VML-3D ? |
☺ | Explore the possibilities of SVG? |
☺ | What is SVG and what is VML ? |
☺ | What are the predefined shapes in SVG? |
☺ | What is SVG? |
Top Application Program Categories
☺ | AutoCAD Interview Questions. |
☺ | Microsoft Office Interview Questions. |
☺ | Microsoft Outlook Interview Questions. |
☺ | Microsoft Excel Interview Questions. |
☺ | WPF Interview Questions. |