A covalent bond is formed when there is an equal sharing of electrons between two atoms. The atoms forming a covalent bond must have relatively equal attraction for the electrons. The bonds between the carbon atom and the hydrogen atoms in the compound methane CH4 are examples of covalent bonds between two different elements.