1) Stars initially form from a cloud of dust and gas called a nebula
protostar
2) The force of gravity pulls the dust and gas together to form a protostar. The temperature rises as the star gets denser and more particles collide with each other. When the temperature gets high enough, hydrogen nuclei undergo nuclear fusion to form a helium nuclei. This gives out huge amounts of energy, which keeps the core of the star hot. A star is born
main sequence star
3) The star enters a long stable period where the outward pressure caused by the nuclear fusion that tries to expand the star balances the force of gravity pulling everything inwards. In this stable period it's called a main sequence star and it typically lasts several billion years.
Eventually the hydrogen begins to run out. The star then swells into a red giant (if it is a smaller star) or a red super giant (if it is a larger star). It becomes red because the surface cools. Fusion of helium (and other elements) occurs. Heavier elements (up to iron) are created in the core of the star.
stars much bigger than the sun
red super giant
supernova
neutron star
black hole
Big stars start to glow brightly as they undergo more fusion and expand and contract several times, forming elements as heavy as iron in various nuclear reactions. Eventually they'll explode in a super nova , forming elements heavier than iron and ejecting them into the universe to form new planets and stars. Stars and their life cycles produce and distribute all natrally occuring elements.