stroke

< svg‎ | attributes
Jump to: navigation, search

stroke

This article is Almost Ready.


W3C Recommendation

Summary

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.

Compatibility

There is no data available for topic "svg", feature "stroke". If you think that there should be data available, consider opening an issue.

Examples

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


Standards information

Related specifications

Specification Status Related Changes
SVG 1.1 W3C Recommendation

See also

Related pages (MSDN)

Reference

Attribution

This article contains content originally from external sources.

Portions of this content come from the Microsoft Developer Network: [Windows Internet Explorer API reference Article]