The compounds formed when metals react with non-metals are:
Ionic
Covalent
Metalloid
Metallic
A metal reacts with a non-metal to give an ionic compound.
E.g. Sodium reacts with chlorine to form sodium chloride. Na + Cl → NaCl