About This HTML Issue
This warning appears when an <svg> element has version="1.0" or version="1.2", because the W3C validator only checks inline SVG against SVG 1.1. Removing the version attribute clears the warning and won't change how browsers draw the graphic.
The version attribute was meant to declare which SVG specification the content targets. The validator has no ruleset for SVG 1.0 or 1.2, so it falls back to this warning. Other values, such as "2.0", get a different error instead: Bad value “2.0” for attribute “version” on element “svg”. Browsers ignore the attribute when rendering, so dropping it has no visible effect.
This usually shows up in files exported from drawing tools, which write a version attribute by default. The baseProfile attribute is obsolete for inline SVG in HTML5 for the same reason, so you can remove it too.
Invalid example
<svg version="1.0" xmlns="http://www.w3.org/2000/svg" width="100" height="100">
<rect x="10" y="10" width="80" height="80" fill="teal" />
</svg>
Valid example
<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100">
<rect x="10" y="10" width="80" height="80" fill="teal" />
</svg>
If you have a lot of SVG files to clean up, an optimizer like SVGO can strip the version attribute automatically.
Find issues like this automatically
Rocket Validator scans thousands of pages in seconds, detecting HTML issues across your entire site.