There's 2 types of bonds, Ionic Bond & Covalent Bonds! :)
Ionic bonds are usually between metals and non-metals, like the compound NaCl. Both atoms will give/take electrons from each other to achieve the stable arrangement. The metal will usually give electrons and the non-metal will take electrons.
Covalent bonds are different, and it's usually between non-metals, like oxygen compound (O2). They won't take or give elctrons, but they will share valence electrons to achieve stable octet arrangement! Sometimes they can share up to 2 or 3 pairs of electrons and have more bonds too.