Can't we use svg attributes 2 times? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Can't we use svg attributes 2 times?

Means <Svg ---- ----> </Svg> <Svg ---- ----(some different values)> </Svg>

15th Jan 2020, 1:05 PM
Tushar Pethani
Tushar Pethani - avatar
2 Answers
+ 1
No. svg is a root tag in the SVG file format. There can't be 2 of them for multiple reasons. An XML document can only have 1 root element and svg is it. The SVG schema and other standards for it don't allow more than svg tag. On a side note, the tag name is svg and not Svg. XML and SVG are case sensitive languages.
18th Jan 2020, 2:31 AM
Josh Greig
Josh Greig - avatar
0
Ok thanks Josh Greig I understood completely 👍🏻
18th Jan 2020, 7:14 AM
Tushar Pethani
Tushar Pethani - avatar