"Today my school was shown this video. So sad how ONLY girls are shown as the violators," one student wrote on Twitter.
"I understand why my school has a dress code, but what about the boys who wear shorts, or show their shoulders? It's 2018 … Why are we still over-sexualising teen girls?"
Another person wrote: "I support dress codes but this video is sexist and meant to humiliate girls. Shame on this school."
The head teacher later apologised for the "poor song choice" and featuring only female students in the video.
"Construction in and around the campus prevented us from holding student orientation, which is typically accompanied by a fashion show that demonstrates what to wear, and what not to wear," he said.
"We believed a video would be a good way to replace the fashion show, but this video absolutely missed the mark."