Web4College

CSS stroke-linecap property

src

Description

CSS stroke-linecap property defines the shape of corners at the end of a line.

Syntax

stroke-linecap : butt | round | square

Property values

buttDefault

It represents squared shaped corners of an SVG line.

stroke-linecap: butt;
Try it

round

It adds additional round corners at the both ends of an svg line.

stroke-linecap: round;
Try it

square

It adds additional square corners at the both ends of an svg line.

stroke-linecap: square;
Try it

Applicable to

It applies to inline boxes and SVG shapes.