Can't we use svg attributes 2 times? | SoloLearn: Learn to code for FREE!

+1

Can't we use svg attributes 2 times?

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

1/15/2020 1:05:26 PM

Tushar Pethani

2 Answers

New Answer

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

0

Ok thanks Josh Greig I understood completely 👍🏻