The correct option is D carbon
Fossil fuels are obtained from the fossils of dead plants and animals over millions of years. For example, coal, petroleum, etc.
They are primarily made up of hydrocarbons and hence contain carbon and hydrogen atoms as their major constituents. However, they also contain small amounts of oxygen, nitrogen, sulphur, etc., in them.