Skip to content

24 ways to impress your friends

Vote up?

James Finn

Hello Sara,

In solution 1, “HTML INLINE SVG SPRITES”, section b, “Referencing an external SVG sprite in HTML”.

You have the following code block:

```
<svg class=“twitter-icon”> <use xlink:href=“path/to/icons.svg#twitter-icon”></use>
<svg>
```

Including the `xmlns` attribute to the `svg` tag improves support a bunch:

`xmlns=“http://www.w3.org/2000/svg”`

Source: [Chris Coyier](http://css-tricks.com/svg-sprites-use-better-icon-fonts/), who cites the testing of Jonathan Neal (of svg4everybody fame).