This page is Almost Ready

Notice: The WebPlatform project has been discontinued when the Stewards partnership agreement ended in September 2015. This site has been frozen, and the assets we have created will remain.



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