What rule do atoms that tend to combine in such a way that they have eight electrons in their valence shell follow ?
The ions are held together due to electrostatic attraction , and that compound sodium chloride ( NaCl ) , or common table salt , is formed .