Gravity pulls the gas and dust together, which forms a protostar.
As the temperature rises, the star gets denser and more particles collide. When the temperature is high enough, hydrogen nuclei undergo nuclear fusion to form helium nuclei which gives off lots of energy.
This keeps the core of the star hot and a star is born.
Comments
No comments have yet been made