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