Marius Hauken is a designer and partner at Stacc X, Bergen Norway.
You should subscribe to my weekly newsletter

When to use svg attributes

Are you inlining your svg in HTML5? Just use<svg></svg> tags without attributes.

Are you linking the SVG as an image, background-image or importing it another way that causes the User Agent to use an XML parser? Then you need the xmlns attributes like so:

<svg version="1.1" xmlns="" xmlns:xlink="">`