![]() |
VOOZH | about |
The stroke-width attribute is an attribute defining the width of the stroke applied to the shape.
Syntax:
stroke-width="length"
Attribute Values:
We will use the stroke-width attribute for setting the width of the element.
Example 1: In this example we will use the stroke-width attribute for setting the width of rect using length value.
Output:
👁 ImageExample 2: In this example, we will use the stroke-width attribute for setting the width of rect using percentage value.
Output
👁 Image