Write an article based on this summary:

Remove your hat when entering a building. Remove your hat during formal events and processions. Remove your hat when you start a conversation. Keep your hat on when required.
Buildings include the home, classroom, theater, restaurants and any other building you can think of. The exception to this rule is indoor areas that are considered public areas, such as lobbies or elevators.  This rule apply said to all kinds of hats, including baseball caps. If a woman enters the elevator, a man should remove his hat. He may put the hat back on, or “don” it, once he has left the elevator and entered the corridor. It is a sign of respect to remove your hat during wedding processions, funeral processions, and formal photographs. You should also remove it during the national anthem.  Hold your hat appropriately when you remove it. Hold it so that the internal lining is not visible to others. During the national anthem, hold your hat with your right hand, so that the hat covers your left shoulder, and your right hand is over your heart. This is known as “doffing” your hat. Removing the hat is a sign of respect to the person you are conversing with, such as when you are being introduced to someone or entering a conversation.  When meeting a superior or someone of repute outdoors, remove your hat to show deference. If a conversation in which you've removed your hat carries on for more than a minute, you may replace your hat on your head. The hat may also be placed back upon the head if the conversation moves elsewhere, or occurs on the move. Some places of worship, such as mosques, require your head to be covered while visiting. Keep your hat on your head if you visit such a building.  Yamulkes/kippahs are often required in Jewish synagogues, (or appreciated for gentiles). If you do not have one, spare head covering is often available at the entrance.  Some churches or circles of Christian thought require head coverings during worship or prayer. Check with your congregation to see if they require covering.