The girls were then sent to a room for ‘dress code violators’ where a teacher asks them to recite “I will not wear athletic shorts” over and over.

A school has apologised after upsetting students and parents with a ‘sexist’ dress code video [Photo: Twitter]

After being shared to Twitter by student Cat Morning, the video quickly drew attention thanks to the fact that only female pupils were shown to be reprimanded despite the fact that the school is mixed sex.

Today my school was shown this video. So sad how ONLY girls are shown as the violators. I understand why my school has a dresscode, but what about the boys who wear shorts, or show their shoulders? It’s 2018…Why are we still over-sexualizing teen girls? pic.twitter.com/fCXymYAIEG

“So sad how ONLY girls are shown as the violators. I understand why my school has a dresscode, but what about the boys who wear shorts, or show their shoulders? It’s 2018…Why are we still over-sexualizing teen girls?”

Since sharing the video has received more than 1.9K retweets and thousands of comments, with many expressing their upset about the video.

There was widespread backlash after the video went viral. Photo: Getty

Following the backlash the school’s principal issued a statement of apology admitting the video “absolutely missed the mark”.

“I’m a firm believer that when you make a mistake, you own it, you apologise, and you make it right,” the statement read.

Cat also praised the school’s swift response, explaining that she had also had a conversation about the matter with the school’s principal.

I have so much respect for @Marcus_HS principal Mr. Skelton. Today he had an important conversation with me about the issues in the video, and was fully understanding of where the offended female student body was coming from.

She went on to say that the issue of sexism was certainly not confined to her own school.

“This problem is beyond just the four walls of my highschool,” she wrote.

“It exists in schools across the nation. If we work on better educating both students, and adults about how necessary it is to include diversity in all media put out by the school, along with the reality of the continuing existence of rape culture, we can ensure that problems like this never happen again.”