Fossils fuels are made up of carbon and hydrogen only.
All the fuels we are using like oil, gas, and coal are made of hydrocarbons that include hydrogen and carbon as the main component.
Concluding statement
Fossils fuels are made up of hydrocarbons which include carbon and hydrogen, therefore the given statement is true.