Image 1 Caption: The formation of stellar spectra illustrated.
Features:
Recall, the photosphere is the layer of a star where the star becomes sufficiently transparent that photons can escape about half the time to infinity.
Image 2 Caption: The spectral lines dig troughs in the continuous spectrum to create what are called absorption lines or just spectral lines in a second meaning of the term. The overall spectrum is called an absorption line spectrum.