In about half of the svg examples I see on the internet, the code is wrapped in plain simple <svg></svg>
tags.
In the other half, the svg tags have lots of complicated attributes like this:
<svg
xmlns="http://www.w3.org/2000/svg"
version="1.1"
xmlns:xlink="http://www.w3.org/1999/xlink">
My question is: is it ok to use the simple svg tags? I've tried playing around with the complicated ones, and everything works fine at my end if I don't include them.
The xmlns="http://www.w3.org/2000/svg"
attribute is:
<svg>
. 2The xmlns:xlink="http://www.w3.org/1999/xlink"
attribute is:
<svg>
with xlink: attributes. 2The version="1.1"
attribute is:
1 Internationalized Resource Identifiers (RFC3987)
2 Since HTML5
3 Extensible Markup Language (XML) 1.0
4 Probably until the release of further major versions.
5 SVG 2, W3C Candidate Recommendation, 07 August 2018