Home and search icons
- SVG icons
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><title>Home</title><path d="M3 12l9-9 9 9"/></svg> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><title>Search</title><circle cx="7" cy="7" r="5"/></svg>
- Id prefix
- icon
Result SVG sprite: <svg xmlns="http://www.w3.org/2000/svg" style="display:none">
<symbol id="icon-home" viewBox="0 0 24 24"><title>Home</title><path d="M3 12l9-9 9 9"/></symbol>
<symbol id="icon-search" viewBox="0 0 16 16"><title>Search</title><circle cx="7" cy="7" r="5"/></symbol>
</svg>
Icons in the set: 2
Sprite size (characters): 274
Icons with an assumed viewBox: 0
- Found 2 svg element(s); each became a symbol that keeps its viewBox.
- Ids use the prefix "icon" plus the original id, the title, or the icon number.
- Place the sprite once near the top of the body, then draw an icon with a use element pointing at its id.
Two icons with titles become icon-home and icon-search, each keeping its own viewBox.