Octet rule
The s and p sub-shells contain 8 electrons in total, and a full complement in the outermost of these is the most energetically stable. Therefore, elements in a compound attain the electron configuration of the noble gas nearest to them in the periodic table, and bonds between atoms form according to this rule.
Ionic bonding definition
A bond between a metal and non-metal formed from the electrostatic attraction between ions
Ionic bonding relationship with electronegativity
When forming an ionic bond, the elements involved have a large difference in electronegativity,