Why Do Cats Rub Against You?

Is your cat rubbing on your legs? Your face? Why do cats rub against you and do different rubs on different body parts mean different things?