+ 2
Does the circle tag in The svg element have an end tag?
Visual code adds an end tag and I'm confused. Please help.
3 Answers
+ 4
No. It does not have an end tag.
Example.
<circle cx="50" cy="50" r="40" />
All SVG elements dont have an end tag.
+ 3
Pairing end tag is XML syntax. If there is no text content between the opening tag and closing tag, we can use self-closed tag <.... /> For modern browsers, with and without the end tag </circle> both are okay.
+ 3
Thank You