Are SVG parameters such as ‘xmlns’ and ‘version’ needed?

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.

4 Answers
4

Leave a Comment