A hat is a head covering. It may be worn for protection against the elements, for religious reasons, for safety, or as a fashion accessory. In the past, hats were an indicator of social status. In the military, they denote rank and regiment.
learn more about hats: wiki
The Wearing of Hats Fashion History: fashion-era