Casting on
Leave a tail long enough to sew a seam later if the pattern will need one, or about three times the width of the edge for a long-tail cast on. Make a slip knot. That knot counts as the first stitch in this method. Put the needle through the loop, wrap the yarn, and pull a new loop onto the needle. Repeat until you have the number the pattern states.
UK patterns give the needle size in millimetres. Use that size. An old UK number is a different scale. The needle page is the shopping note. This page does not link to a yarn shop that is still pending.
The cast-on edge should stretch enough for the garment. A hat brim that will not go over a head was cast on too tight. If you purl the first row after a long-tail cast on, read the pattern. Some want a knit row.