at the all boys prep school i went to there was a dress code, not a uniform; requiring shirt, tie, dress pants, and blazer/sportcoat. the big thing was that hair and facial hair were factors as well. if you had hair past your collar you had detention until you cut it. if you went in with a beard or shadow you had to shave right then and there with an ancient dull blade with no lather. and if you shaved your head bald you had detention until it grew back to an "acceptable" length- which could take months!!
i actually enjoyed the discipline, who knows what prison i'd be in now not for all that, and i plan to send any boys i may have to a similar school.