Ionic bonds are formed when a metal and a nonmetal interact by exchange of electrons; covalent bonds are formed when nonmetal atoms come together to share a few of their valence electrons; and metallic bonding happens when metals interact with one another.