If your LO is 2+ do you put a hat on them to protect their head from the sun? If so, which kind?

I just found two sun hats in a basket and decided to throw them on the girls and surprisingly they kept them on. It helps with the bugs biting their head (we have bad biting bugs here right now!) and so their heads don't get burnt, plus shading their face.