What is an SVG tag in HTML and how to use it?

Inaya
Inaya
2 Points
1 Posts

What is an SVG tag in HTML and how to use it?

Views: 147
Total Answered: 1
Total Marked As Answer: 0
Posted On: 15-Dec-2022 06:55

Share:   fb twitter linkedin
Answers
Stevan
Stevan
72 Points
31 Posts
         

SVG stands for Scalable Vector Graphics. We can use it to define graphics for the Web. Following is example of drawing circle with svg tag:

<!DOCTYPE html>
<html>
<body>
    <svg width="100" height="100">
      <circle cx="50" cy="50" r="40" stroke="black" stroke-width="4" fill="red" />
    </svg>
</body>
</html>

Output:

Posted On: 15-Dec-2022 07:10
 Log In to Chat