Chip Somodevilla/Getty Images

Melania Trump says social media has gotten "too mean and too tough" and that if her husband is elected president next week, she'll work to improve online civility.

The wife of Republican nominee Donald Trump discussed cyberbullying during a solo speech Thursday in suburban Philadelphia.

"It is never OK when a 12-year-old girl or boy is mocked, bullied or attacked. It is terrible when it happens on the playground, and it is absolutely unacceptable when it is done by someone with no name hiding on the internet," Trump said, according to a CNN account of her speech. "We have to find a better way to talk to each other."

Abusive behavior online is far from a new phenomenon. Sixty-five percent of internet users under 30 have faced online harassment of some sort, according to a 2014 survey by the Pew Research Center.

But conspicuously absent from Trump's speech was any mention of her husband's Twitter activities, which have for years featured demeaning comments about critics, journalists and political foes. During one tweet storm in September, Trump called former Miss Universe winner Alicia Machado "disgusting" and a "con" and invited followers to check out a nonexistent Machado sex tape.

The Trump campaign did not immediately respond to a request for comment.