Question: ions are formed by elements?
Answer: Cations (positively-charged ions) and anions (negatively-charged ions) are formed when a metal loses electrons, and a nonmetal gains those electrons. The electrostatic attraction between the positives and negatives brings the particles together and creates an ionic compound, such as sodium chloride.