Use symbol definitions
Put reusable icon shapes in symbol elements with clear viewBox values.
svg sprite
SVG sprites group reusable symbols so frontend projects can use consistent icons without repeating full markup everywhere.
Put reusable icon shapes in symbol elements with clear viewBox values.
Use use references where your stack and browser support needs allow it.
Name informative icon instances and hide decorative ones.
<svg style="display:none"><symbol id="icon-check" viewBox="0 0 24 24"><path d="M5 13l4 4L19 7" fill="none" stroke="currentColor" stroke-width="2"/></symbol></svg><svg viewBox="0 0 24 24"><use href="#icon-check"/></svg>
<symbol id="icon-check" viewBox="0 0 24 24">
It is a collection of reusable SVG symbols referenced by icon instances.
They can be, but each rendered icon still needs the right accessible name or hidden state.