Where does the light from the stars come from?

stars are just balls of gas in the atmosphere burning, 1/2 of the stars you can see in the sky are burnt out allready, it's just that there so far away from the earth you can still see the light coming off of them