An ionic bond is one between electronically positive (alkali metals etc.) and negative elements (halogen etc.), and a covalent bond forms between elements with close electronegativities.
However, in many compounds there is contribution from both ionic and covalent bonds (see Section 2.1 about bondings).