I have a question about the need to declare the SVG version in the <svg>
I know that SVG started with the version 1.0
, 1.1
, 1.2
and is now in the 2.0
version. Some SVG I see with the version declaration and others without, however the two are rendered normally by the browser. I also know there are several changes between the 1.2
and 2.0
version.
There's a doubt, since I do not declare the SVG version as the browser will know which version I'm using?
There really is a need to declare version
since they have things very different between one version and another?
Example with version="1.1"
declared.
<svg version="1.1" x="0px" y="0px" width="612px" height="502.174px" viewBox="0 65.326 612 502.174" >
<ellipse class="ground" cx="183.5" cy="187.5" rx="159" ry="80"/>
</svg>
Example without version
declared
<svg viewBox="0 0 30 10">
<circle id="myCircle" cx="5" cy="5" r="4"/>
</svg>