property

Marker end — CSS reference

Places a marker at the final vertex of the shape. The referenced marker is defined in the same SVG and uses a square so its position is easy to verify.

Formal Syntax & Structure

css syntaxcss
marker-end: url(#m);

Working Example

Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>marker-end</title><style>body{margin:0;background:white}svg{display:block}#a{marker-end:url(#m)}</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"><defs><marker id="m" markerWidth="12" markerHeight="12" refX="6" refY="6" markerUnits="userSpaceOnUse"><rect width="12" height="12" fill="blue"/></marker></defs><path id="a" d="M40 100 L100 40 L180 100" stroke="red" fill="none" stroke-width="3"/></svg></body></html>
CSS Reference