SVG offers a wide range of stroke properties. In this chapter we will look at the following:
All the stroke properties can be applied to any kind of lines, text and outlines of elements like a circle.
The stroke property defines the color of a line, text or outline of an element:
Here is the SVG code:
For Opera users: View the SVG file (right-click on the SVG graphic to view the source).
The stroke-width property defines the thickness of a line, text or outline of an element:
Here is the SVG code:
For Opera users: View the SVG file (right-click on the SVG graphic to view the source).
The stroke-linecap property defines different types of endings to an open path:
Here is the SVG code:
For Opera users: View the SVG file (right-click on the SVG graphic to view the source).
The stroke-dasharray property is used to create dashed lines:
Here is the SVG code:
For Opera users: View the SVG file (right-click on the SVG graphic to view the source).
| WEB HOSTING |
|---|
| Best Web Hosting |
| PHP MySQL Hosting |
| Best Hosting Coupons |
| UK Reseller Hosting |
| Cloud Hosting |
| Top Web Hosting |
| $3.98 Unlimited Hosting |
| Premium Website Design |
| WEB BUILDING |
|---|
| XML Editor - Free Trial! |
| FREE Website BUILDER |
| Best Website Templates Top CSS Templates |
| CREATE HTML Websites |
| EASY WEBSITE BUILDER |
| W3SCHOOLS EXAMS |
|---|
|
Get Certified in: HTML, CSS, JavaScript, XML, PHP, and ASP |
| W3SCHOOLS BOOKS |
|---|
|
New Books: HTML, CSS JavaScript, and Ajax |
| STATISTICS |
|---|
|
Browser Statistics Browser OS Browser Display |
| SHARE THIS PAGE |
|---|