A covalent bond is formed due to a shared pair of electrons between to atoms. It occurs between two non-metal atoms eg) HClAn ionic bond is formed when there is a strong electrostatic attraction between oppositely charged ions. eg)NaCl forms from Na+ and Cl-