What you were taught
Fossil fuels such as oil, gasoline and natural gas come from the decomposed remains of dinosaurs buried underground millions of years ago.
What we know now
Oil and natural gas formed from buried marine life, especially plankton and algae, not from dinosaur skeletons. An estimate puts about 70% of the world's oil deposits in the Mesozoic, 20% in the Cenozoic, and 10% in the Paleozoic, so much of the oil shares an era with dinosaurs without being made of them. Coal comes from swamp plants that died about 300 million years ago, before dinosaurs. Gasoline is refined from crude oil. In 1936 Alfred Treibs showed petroleum has a biological origin, from chlorophyll and heme derivatives.
Updated understanding emerged around 1936