property
D — CSS reference
Defines the geometry of an SVG path via CSS path data. The CSS declaration overrides the d presentation attribute. Smooth interpolation requires compatible path command structures.
Formal Syntax & Structure
css syntaxcss
d: path("M 20 40 H 140");Working Example
Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>d</title><style>body{margin:0;background:white}svg{display:block}#a{d:path("M 20 40 H 140")}</style><body><svg xmlns="http://www.w3.org/2000/svg" width="240" height="160" viewBox="0 0 240 160" role="img" aria-label="SVG styling example"><path id="a" d="M20 40 H60" fill="none" stroke="red" stroke-width="4"/></svg></body></html>