A star is a ball of plasma held together by gravity that undergoes nuclear fusion at its core, releasing electromagnetic radiation. Stars exist along a spectrum from hot, blue stars to cooler, red stars and can be classified based on their temperature, luminosity, and color. A star's life cycle begins as a contracting nebula and progresses through stages such as the main sequence, red giant, planetary nebula, and white dwarf before ending as a neutron star or black hole.