We start with the ears. These are two circles that both have the fill and the stroke attributes set. We also defined a class on the SVG element to set the background color. Note, that here we set the regular background-color CSS property and not the fill attribute. Fill works with shapes, but the SVG element itself is not a shape.
-100, -100
200, 200
Then let’s add the face and the eyes. Here’s another thing we haven’t covered before. Earlier we saw that we can round rectangles with the rx property. We can be even more specific and set a different radius on the Y-axis with the ry property. If the latter is not set, it falls back to the other one.
-100, -100
200, 200
Then, let’s draw the muzzle. We use the path element for this.
We draw the upper part of it as a cubic Bézier curve and the two bottom corners with two quadratic Bézier curves. Hover over the coordinates in the code or on the image to see how they are positioned.