Skip to content

24 ways to impress your friends

Vote down?

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>

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


Source: [Chris Coyier](, who cites the testing of Jonathan Neal (of svg4everybody fame).