🛠️Stroke and Fill
Also known as Fill and Stroke, Outline and Fill, Shape Stroke, Shape Fill
Fill is the color inside a shape. Stroke is the line around its edge.
Think of it like
It is like a coloring book page. The stroke is the black line, and the fill is the color inside.
Example
Leo draws a star for a badge. He gives it a yellow fill and a thick dark stroke, so it stands out on a busy photo.
Why it matters
Definition
Example code
html
<circle cx="50" cy="50" r="40" fill="gold" stroke="black" stroke-width="6" />Common mistake
Key takeaways
- 1Fill is inside. Color, gradient or pattern.
- 2Stroke is the edge. Color and thickness.
- 3Either can be off. Lines need no fill.