Answer:
(in the US) There are no criminal or civil laws addressing student dress codes attending public schools. If there are any such rules they are established by the school itself or the local school administration. Of course, private and parochial schools can address their own dress codes however they wish.