Valence electrons in carbon= 4
Valence electrons in chlorine=7
In order to complete the octet of carbon, it shares its electrons, one with each of the three hydrogen atoms and one with one chlorine atom. Since, bonds are formed because of sharing of electrons. Carbon forms 3 covalent bonds with hydrogen and 1 covalent bond with chlorine.