the dress code
A "dress code" is a set of rules about how people are supposed to dress. For example, a dress code might require all men to wear a necktie, or might forbid people from wearing a hat.
Schools sometimes have dress codes for their students; businesses have a dress code for their employees. Some places like clubs and golf courses also have a dress code.