Are halogens the basis of all fossil fuels?

Halogens are not the basis of all fossil fuels. Carbon is the basis of fossil fuels and it is not a halogen.