+ 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.

5th Oct 2019, 1:35 AM
Anthony Kwesi Saah
Anthony Kwesi Saah - avatar
3 Respuestas
+ 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.
5th Oct 2019, 2:50 AM
Anthony Johnson
Anthony Johnson - avatar
+ 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.
5th Oct 2019, 2:56 AM
Gordon
Gordon - avatar
+ 3
Thank You
5th Oct 2019, 9:36 AM
Anthony Kwesi Saah
Anthony Kwesi Saah - avatar