What causes dark gaps or lines to appear superimposed on a star's continuous spectrum?
Answer
Cooler gases in the star’s outer layers absorbing specific wavelengths
Absorption lines occur when photons interact with electrons in the star’s outer layers of cooler gas; the atom absorbs photons only if they possess the exact energy needed to bump an electron to a higher energy level.

#Videos
How Do We KNOW What Stars Are Made Of? - YouTube
Related Questions
What must serve as the sole source of information regarding the composition of distant stars?What process transforms incoming starlight into a continuous band of colors from red through violet?What causes dark gaps or lines to appear superimposed on a star's continuous spectrum?What does the unique pattern formed by dark or bright spectral lines act as for an element?Which element produces the very distinct set of spectral lines known as the Balmer series?How do astronomers determine the relative abundance of elements in a star's outer layers?If an observed spectral line is slightly shifted toward the red end of the spectrum, what does this reveal about the star?What is the sophisticated instrument attached to telescopes used to capture and analyze faint, distant starlight by separating it into wavelengths?A star found to have a very low metal content is classified as which population type?How can expert analysis distinguish between absorption lines caused by the star itself and those caused by intervening interstellar dust?