Respuesta :

All halides (nonmetals) could form an ionic compound with magnesium with the formula mgx2.

What are ionic compounds?

A chemical compound known as an ionic compound in chemistry is one that contains ions bound together by the electrostatic forces known as ionic bonding. Despite having both positively and negatively charged ions, or cations and anions, the molecule is generally neutral.

The proportional size of the cations and anions determines how an ionic molecule is structured. Salts, oxides, sulphides, hydroxides, and the majority of inorganic compounds are examples of ionic compounds. The electrostatic forces of attraction between positive and negative ions hold together ionic solids.

All halides or other non metallic ions like OH- that require one electron to satisfy their octet  that is noble gas configuration will form compounds with the formula MgX2.

To learn more about ionic compounds from the given link below,

https://brainly.com/question/11542729

#SPJ4