CSS · Properties — Scalable Vector Graphics

stroke

The CSS stroke property. Initial value: stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width. Inherited.

Syntax
stroke: <paint>

Example

Try it

Notes

Media: visual. Applies to: asLonghands. Computed value: asLonghands.

More in this group

cx cy d fill fill-opacity fill-rule marker-end marker-mid

Learn this in the course

Reference pages are the quick answer. The course explains the why, shows the full example and ends with a challenge.

Open the course