How are supernovas formed?

Flexi Says:
When very massive stars leave the main sequence, they first become red supergiants and then end their life cycles in with a bang. Unlike a red giant, when all the helium in a red supergiant is gone, fusion continues. Lighter atoms fuse into heavier atoms up to iron atoms. Creating elements heavier than iron through fusion uses more energy than it produces so stars do not ordinarily form any heavier elements. When there are no more elements for the star to fuse, the core succumbs to gravity and collapses, creating a violent explosion called a supernova. A supernova explosion contains so much energy that atoms can fuse together to produce heavier elements such as gold, silver, and uranium. A supernova can shine as brightly as an entire galaxy for a short time. All elements with an atomic number greater than that of lithium were formed by nuclear fusion in stars.