Absorption spectra of stars
Emission spectrum of a Quasar
Astronomers can use these lines to deduce the composition of stars