The stable electron arrangements in the outermost energy level are associated with the stability of the noble gases.
Noble gasses have eight valence electrons, which is an octet, except for helium, with two electrons.
In Groups 1A to 7A (1,2, 13 to 17), the atoms of elements achieve stability through loss, gain, or sharing in the formation of composites their valence electrons.
Representative metals lose valence electrons to make positive ions (cations): Group 1A, Group 1+, Group 2A(2), Group 2+ and Group 3A(13), Group 3+.
In response to metals, nonmetals gain electrons to form bytes that form negative ions (anions): group 5A (15), group 3-, group 6A (16), group 2- and group 7A (17), group 1-.
Electronegativity is an atom's ability to attract electrons that it shares.
Atoms share electrons equally in a nonpolar covalent bond.
The electrons are unequally divided into a polar covalent connection because they are attracted to the more electronegative atom.
The atom is partly positive in a polar relationship (d+) and partly negative in the polar link with lower electronegativity (d+) (d-).
Atoms forming ionic bonds differ greatly in electronegativity.