The US military also has its rules regarding hats. The Army and Air Force require you to salute an officer or superior officer indoors weather you are wearing a hat or not. The Navy on the other hand requires you not to salute indoors or while not wearing a hat. The Navy also required you to remove your hat when entering a sickbay or medical facility.