By Hemanta Sundaray on 2021-11-06
We can draw a circle using the <circle> element.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>SVG Fundamentals</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<svg width="280px" height="200px" viewBox="0 0 200 200">
<circle
cx="100"
cy="50"
r="40"
style="stroke-width: 5; stroke: black; fill: red"
/>
</svg>
</body>
</html>
svg {
border: 0.2rem solid red;
}