The stroke attribute is a presentation attribute that define the color of the outline of the given graphical element.
### Syntax
stroke: none | currentColor | color | funciri [ none | currentColor | color ] | inherit
The default value is none, which means that the outline is not drawn.
ExamplesThis example shows how to draw a circle with a red stroke and no fill color.
<svg width="400" height="400">
<circle cx="100" cy="100" r="50" stroke="red" stroke-width="3" fill="none" />
</svg>
Standards information
Related specifications
Microsoft Developer Network: [Windows Internet Explorer API reference Article]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4