Fallacy of composition

A fallacy of composition is a fallacy where on believes that if something is true for part of something else, then it must be true for the whole. For example, if sodium (Na) and chlorine (Cl) are dangerous for humans, then table salt (NaCl) must also be dangerous for humans.