The covalent compounds are formed by sharing of electrons between the atoms that have similar electronegativities.
A covalent bond has overlapping of orbitals has less energy in the bond so atoms in a molecule have a weak force of attraction between them.