When you conform to a dress code you are wearing certain articles of clothing that have been approved by a group of people. Dress codes are usually used to control an activity or reduce distraction to members of the opposite sex.

Usually used by schools to keep the kids in check.