This page is Almost Ready

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.



The stroke attribute is a presentation attribute that define the color of the outline of the given graphical element.

Applies to ?
### Syntax
 stroke: none | currentColor | color | funciri [ none | currentColor | color ] | inherit

The default value is none, which means that the outline is not drawn.


This 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" />

Standards information

Related specifications

SVG 1.1
W3C Recommendation

See also

Related pages