A protostar is a very small star. The protostar begins to heat up, and if it has enough matter the core temperature reaches 15 million degrees Fahrenheit. At 15 million degrees Fahrenheit nuclear reactions occur in which hydrogen fuses to form helium. The star then begins to release energy which stops it from contracting, and it causes the star to shine. When a star starts to shine it is called a "main sequence star". A star remains in main sequence depending on its solar mass. A star of about 1 solar mass will remain in main sequence for about 10 billion years. After all of the star's hydrogen has been used to form helium, it begins to cool down and the helium fuses to carbon and the star expands, becoming a red giant (when a star becomes a red giant with no more hydrogen left to burn it is out of the main sequence.)
The red giant keeps expanding until all of its helium runs out and then all of the outer layers drift away from the core as a gaseous shell. The gas that surrounds the core is called a "Planetary Nebula". The core that is left then becomes a "white dwarf". After the white dwarf cools down enough it stops shining and dies, forming a "black dwarf".
Another life cycle of a star involves a star with a mass of 10 solar masses or more. These stars evolve similarly to stars of about 1 solar mass until they reach "main sequence". The star shines bright until all of its hydrogen has fused to form helium. This takes only millions of years, compared to the billions it takes smaller stars. The huge star then becomes a Red Supergiant with a helium core. As the star's