I went to public school and we had dress codes during regular school and dances. They were very strict during the regular school hours and then during the dances they didn't seem to enforce them.