1) Stars originate from nebulae of dust and gas. They spend most of their life fusing hydrogen into helium through nuclear fusion in their cores as main sequence stars.
2) When stars have exhausted their hydrogen, their cores collapse and outer layers expand, forming red giants. More massive stars explode as supernovae, leaving behind neutron stars or black holes.
3) The sun is classified as a yellow dwarf star. Its atmosphere consists of the photosphere, chromosphere, and corona. Nuclear fusion in its core provides its energy.