1. Explicit rules for how people may and may not dress in a specific context, specified by those with ownership and/or control of that location. Usually associated with ‘formal dress’, but including any such code, including that for nudist beaches.
2. The unwritten cultural codes of dress and general appearance that reflect norms in particular contexts. Natives of a culture learn these through socialization while strangers to that culture may infer them from the behaviour of the majority of people within it.