SVG Specification & Optimization ReferenceVector XML standards, path data rules, and efficient Data URI embedding.
Defines coordinate system position and dimensions (min-x min-y width height).
viewBox="0 0 24 24"
XML namespace declaration required for standalone SVG files and Data URIs.
xmlns="http://www.w3.org/2000/svg"
URL-encoded SVG data uri with smaller payload than Base64 for vectors.
data:image/svg+xml;utf8,<svg ...
Base64 binary encoded Data URI for legacy browser compatibility.
data:image/svg+xml;base64,PHN2Zy...
M (moveto), L (lineto), C (curveto), Z (closepath) geometry instructions.
d="M10 10 H 90 V 90 H 10 Z"
Converts kebab-case attributes to camelCase (e.g. stroke-width to strokeWidth).
strokeWidth="2"