Learn SVG

Short, practical guides. Most include code you can edit and see change right on the page.

Foundations

Drawing

Motion and effects

Building with SVG

Quality and safety

  • SVG accessibility

    Give SVG graphics accessible names and descriptions, hide decoration, respect reduced motion, and avoid common labeling mistakes.

  • SVG browser compatibility

    What caniuse and MDN data show about SVG support across browsers, which old habits to drop, and how to test the cases that still bite.

  • Optimizing SVG files

    Shrink SVG with SVGO and server compression without breaking viewBox, titles or ids. Includes config examples and the trade-offs of each setting.

  • SVG security

    Why SVG can carry script, how img, inline, object and iframe differ, and how to handle uploads with sanitizing, separate origins, CSP and sandboxing.