Stars are form from Gas & our universe is full of gasses. No, no, I am not telling about "star" people, I am talking about the stars what we see in the sky's at night. The first misunderstanding is, at this moment, therefore what we are looking in the sky like many stars, actually they are not in that place currently. We are watching a version of stars which was a light-years ago.
Now come to the point.
By observing nebula's at different stages in their evaluation, the story of a stars birth begins to emerge. It all stars inside a cold dark cloud of dust & hydrogen gas where a quite tag of war begins. The clouds wants to dissipate like smoke in the air but the gravity wants pull it together. There is a kind of balance between gravity pulling in and gas pressure pushing back it out. Gravity wins and the materials quenches down into a disk, that is the beginning of becoming a star. As gravity pulls more and more gas towards the center of the disk, it gets denser and denser & harder and harder until finally a 80 million degrees a miraculous transformation takes place. Hydrogen atom fused to get into form Helium and with a burst of nuclear energy a stars begins to shine. Over the next few million years with the blow of surrounding gas into spectacular swirling patterns.