Did volcanoes kill the dinosaurs?

Coupon92123 thought this was worth mentioning said
2

Hello everyone,
Dinosaurs are known to have appeared on earth for a long time. They appeared when humans were not yet proliferated on earth. Today, this animal is extinct. People who want to learn about it today can only rely on the models and recorded documents. Dinosaurs are an extremely large animal so it may not be human hunting that led to its extinction. So could the volcanic eruption lead to the extinction of the dinosaurs? Can anyone tell me the answer?
Thanks everyone.