Between which types of elements do ionic bonds occur, and how do electrons act within the bond?

Ionic bonds are most prevalent between representative elements. Representative elements are those of the first two and the last five columns of the periodic table. That is Na and Cl or Na and O or K and F etc.