property
Stroke linecap — CSS reference
Controls the end shape of open stroked subpaths. Round adds a semicircle with radius half the stroke width; butt ends at the endpoint and square extends by half the width.
Formal Syntax & Structure
css syntaxcss
stroke-linecap: round;Working Example
Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>stroke-linecap</title><style>body{margin:0;background:white}svg{display:block}#a{stroke-linecap:round}</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="M40 80 H180" fill="none" stroke="red" stroke-width="10"/></svg></body></html>