when observing light from distant stars and galaxies through a spectrometer you see a pattern of black lines on the spectrum. these lines represent wavelength of light that have been absorbed by elements in the gases in the star's atmosphere. as every element will absorb different wavelengths, each element has a unique pattern of lines.