please have look at Periodic table , you will solve it yourself !
Ionic bonding is the complete transfer of valence electron(s) between atoms. It is a type of chemical bond that generates two oppositely charged ions. In ionic bonds, the metal loses electrons to become a positively charged cation, whereas the nonmetal accepts those electrons to become a negatively charged anion.
Ionic bonds are formed as one atom the metal gives up or transfers one of its valence electron to the other atom that would then be able to accept it. This other atom is a non metal. This process occurs because the atoms want to become more stable by each of them satisfying the octet rule. In which atoms would have a maximum of 8 valence electrons.