Answer
When elements combine to form compounds, there are two major types of bonding that can result. Ionic bonds form when there is a transfer of electrons from one species to another, producing charged ions which attract each other very strongly by electrostatic interactions, and covalent bonds, which result when atoms share electrons to produce neutral molecules. In general, metal and nonmetals combine to form ionic compounds, while nonmetals combine with other nonmetals to form covalent compounds (molecules).
Since the metals are further to the left on the periodic table, they have low ionization energies and low electron affinities, so they lose electrons relatively easily and gain them with difficulty. They also have relatively few valence electrons, and can form ions (and thereby satisfy the octet rule) more easily by losing their valence electrons to form positively charged cations.
The main-group metals usually form charges that are the same as their group number: that is, the Group 1A metals such as sodium and potassium form +1 charges, the Group 2A metals such as magnesium and calcium form 2+ charges, and the Group 3A metals such as aluminum form 3+ charges.
The metals which follow the transition metals (towards the bottom of Groups 4A and 5A) can lose either their outermost s and p electrons, forming charges that are identical to their group number, or they can lose just the p electrons while retaining their two s electrons, forming charges that are the group number minus two. In other words, tin and lead in Group 4A can form either 4+ or 2+ charges, while bismuth in Group 5A can form either a 5+ or a 3+ charge.
The transition metals usually are capable of forming 2+ charges by losing their valence s electrons, but can also lose electrons from their d orbitals to form other charges. Most of the transition metals can form more than one possible charge in ionic compounds.
Nonmetals are further to the right on the periodic table, and have high ionization energies and high electron affinities, so they gain electrons relatively easily, and lose them with difficulty. They also have a larger number of valence electrons, and are already close to having a complete octet of eight electrons. The nonmetals gain electrons until they have the same number of electrons as the nearest noble gas (Group 8A), forming negatively charged anions which have charges that are the group number minus eight. That is, the Group 7A nonmetals form 1- charges, the Group 6A nonmetals form 2- charges, and the Group 5A metals form 3- charges. The Group 8A elements already have eight electrons in their valence shells, and have little tendency to either gain or lose electrons, and do not readily form ionic or molecular compounds.
Ionic compounds are held together in a regular array called a crystal lattice by the attractive forces between the oppositely charged cations and anions. These attractive forces are very strong, and most ionic compounds therefore have very high melting points. (For instance, sodium chloride, NaCl, melts at 801°C, while aluminum oxide, Al2O3, melts at 2054°C.) Ionic compounds are typically hard, rigid, and brittle. Ionic compounds do not conduct electricity, because the ions are not free to move in the solid phase, but ionic compounds can conduct electricity when they are dissolved in water.
Step-by-step explanation: