Nebula
Other nebulae may form as planetary nebulae. This is the final stage of a low-mass star's life, like Earth's Sun. Stars with a mass up to 8-10 solar masses evolve into red giants and slowly lose their outer layers during pulsations in their atmospheres.  When a star has lost enough material, its temperature increases and the ultraviolet radiation it emits can ionize the surrounding nebula that it has thrown off.  The nebula is 97% Hydrogen and 3% Helium with trace materials.