This causes an absorption spectra, as shown below. Because the energy levels are the same, the lines in the emission spectra of an element are in the same position as the lines in the absorption ...
Figure caption, Lower diagram shows spectrum of light redshifted from a distant galaxy moving away from the Earth The upper diagram shows the absorption spectrum from a stationary galaxy with one ...