A cap is a form of headgear. Caps have crowns that fit closer than hats and have no brim or only a visor. They are typically designed for warmth and, when including a visor, blocking sunlight from the eyes.