Table of contents
- 1. Usage context
- 2. Example
- 3. Elements
« SVG Attribute reference home
the stroke attribute is a presentation attribute that define the color of the outline of the given graphical element. The default value for the stroke attribute is none which mean that the outline is never drawn.
As a presentation attribute, it also can be used as a property directly inside a CSS stylesheet
Usage context
| Categories | Presentation attribute |
|---|---|
| Value | <paint> |
| Animatable | Yes |
| Normative document | SVG 1.1 (2nd Edition) |
Example
Elements
The following elements can use the stroke attribute

