Use in SVG (Loading External SVG)
Demonstration of the Use Element and loading shapes from external SVG files.
Star defined in this file; loaded with <use>
Loaded from external SVG; styled with CSS
Loaded from external SVG; styled with CSS
The <use> Element (Loading External SVG)
Check the ability to load an object from an external SVG file.
Currently working in Firefox and Opera; doesn't work in IE9 or Chrome.
In browsers with support, only the shape is imported; CSS from the external file is not applied.