Since the end of the middle ages, dress codes regulated the clothing of society, which was divided into classes.