This is a pattern for simple hat without ribbed boreder and with just a few rounds of decreasing. You start with simple stocking stitches and end with *p1, k2* ribbing.

Yarn: “Amelie” (50% viscose, 50% acryl) by AP d.o.o. Majsperk
Needles: 3,5mm (cirs and dpns for shaping the top of the hat)
Gauge: 5cm =11sts (little stretched - I always stretch it when swatching for flattering hat)
k - knit
p - purl
k2tog - knit 2 together
sts - stitches
* * - repeat between stars
Since you will end with 3 stitches repeat - it is important that total number of stitches is divided by 12 (also your pattern repeat is divided by 12)
Recommendation: - for newborn till 6 months -84st
- babies 6-12 months - 96 sts
- todlers - 108 sts
- children, pre-teen and teen - 120 sts
Let’s start!
Cast on certain number of stitches, join and be careful not to twist it.
Knit in stocking stitches for 2 - 4 cm.
*p1, k11* for 3-4-5 cm
*p1,k2,p1,k8* for 3-4-5 cm
*p1, k2, p1, k2, p1, k5* for 3-4-5 cm
*p1,k2* for 3-4 cm
Decreasing
When your hat measures 15 - 18 -20 -22cm from the bottom
*p1,k2tog*
next round: *p1,k1*
next round: *K2tog*
next round: *knit*
next round: *k2tog*
next round: *knit*
next round: *k2,k2tog*
next round: *k1,k2tog*
next round: *k2tog*
Make I cord from remaining stitches (tutorial here)
As you can notice - decreasing is taking only 6 rounds and starts (black dots) so close to the point where hat finishes:

Thanks to adding purl sts gradually

there are no puff or slouchy effects!
Make a knot with I-cord the way you like:

And if you get bored of knit sts - you can always turn hat inside out and have “new” one:

Happy knitting!