Ionic bonds are when one atom is a metal and the other is a nonmetal. One atom has a high electronegativity value while the other value is relatively low. Electrons are transferred in ionic bonds.
In a covalent bond atoms are equal or similar in electronegativity values and both of the atoms are also non metals. Electrons are shared in covalent bonds.