The compounds made of only carbon and hydrogen are called hydrocarbons. Carbon has the property to make covalent bonds with small atoms like hydrogen. Two examples are methane and propane.