The Sun is fueled by hydrogen in a process called nuclear fusion.
As to dinosaurs and petroleum, I have to laugh. There was an ad for gasoline on TV long, long ago that featured a dinosaur’s head and long neck popping out of a gas tank, and roaring. Petroleum formed long before dinosaurs existed and furthermore, there is no evidence dinosaurs roar!
There is an ongoing debate among geologists whether petroleum is still forming deep underground. I know for certain that coal is not: it only appears in geologic strata known to have formed during the Carbonaceous period and nowhere else.
As to dinosaurs and petroleum, I have to laugh. There was an ad for gasoline on TV long, long ago that featured a dinosaurs head and long neck popping out of a gas tank, and roaring