How similar is the attitude of people in the online world versus the real world?

You know, a lot of people act like tough people online. Seen many of those. But in the real world, they’re scared to act that same way. Had it happened with a girl who I talked to online. She acted rude to me but she smiled when she saw me walking by her. 😂😂😂