Final answer:
An ionic bond is formed between a metal and a nonmetal when electrons are transferred, resulting in the formation of ions with opposite charges. In the case of salt, sodium donates an electron to chlorine, creating sodium cations and chloride anions that are attracted to each other.
Step-by-step explanation:
An ionic bond is formed between a metal and a nonmetal when electrons are transferred from the metal to the nonmetal, creating ions with opposite charges.
In the case of salt (sodium chloride), sodium donates an electron to chlorine, resulting in the formation of sodium cations (Na+) and chloride anions (Cl-). These ions are attracted to each other and form a crystal lattice structure.