Headgear

Or sometimes know as a cover or simply a hat. Protects you from the sun, unless it is the much loved/hated beret.