As far as I know, Nebula refers to a gaseous cloud in the universe.
It can form due to a stellar explosion such as the supernovae.
This kind of nebula contains a neutron star at its core.
I think some sort of nebula is formed at the time of the birth of a star too.
Someone please clarify this.
Q