why coal and petroleum are called fossil fuel?
Petroleum, natural gas, and coal are the main sources of energy for modern use. All of these fuels are classified as fossil fuels. The reason they are called fossil fuels is because they are all made from decayed plants and animals that have been preserved in the earth's crust by pressure, bacterial processes and heat. It takes millions of years for these organisms to chemically change into fossil fuels.
Imad and Prabhjyot have answered your question correctly. Hope you find them helpful.
@Imad and Prabhjyot, Good answer, Keep posting answers they are helpful to all the users of this community. Both of you deserve a thumbs up from the experts. Keep it up!!