![]() |
VOOZH | about |
The SVG offers several stroke properties to be applied to the SVG element. There are lots of properties under stroke properties which can be applied any kind of lines, text, and outlines of elements like a circle.
Syntax:
<elementName stroke="stroke color" stroke-width="Width of the stroke" stroke-linecap="Ending style to a stroke" stroke-dasharray="make a dashed stroke">
Property value:
Few examples are given below:
Example 1: Stroke and stroke-dasharray property:
Output:
👁 ImageExample 2: stroke-width and stroke-linecap property:
Output:
👁 ImageSupported Browsers :