HTML tutorial
CSS3 tutorial
Bootstrap tutorial
JavaScript tutorial
JQuery tutorial
AngularJS tutorial
React tutorial
NodeJS tutorial
PHP tutorial
Python tutorial
Python3 tutorial
Django tutorial
Linux tutorial
Docker tutorial
Ruby tutorial
Java tutorial
C tutorial
C ++ tutorial
Perl tutorial
JSP tutorial
Lua tutorial
Scala tutorial
Go tutorial
ASP.NET tutorial
C # tutorial
SVG offers a wide range of stroke attributes. In this chapter, we will look at the following:
All stroke attributes can be applied to any type of lines, text and elements like a circular outline.
Stroke attribute defines a line, or text element outline color:
Here is the SVG Code:
For Opera users: view SVG file (right-click on the preview source SVG graphics).
Tstroke- width attributes define a line, or text element outline thickness:
Here is the SVG Code:
For Opera users: view SVG file (right-click on the preview source SVG graphics).
strokelinecap attribute defines the end of an open path of different types:
Here is the SVG Code:
For Opera users: view SVG file (right-click on the preview source SVG graphics).
strokedasharray property used to create the dotted line:
Here is the SVG Code:
For Opera users: view SVG file (right-click on the preview source SVG graphics).