Suppose we want to know what the Sun is made of. What should we do?
Count the total number of black lines in the Sun's spectrum.
Precisely measure the intensity of light in each of the black lines in the spectrum.
Compare the wavelengths of lines in the Sun's spectrum to the wavelengths of lines produced by chemical elements in the laboratory.
Find the precise wavelength at which the background rainbow of color peaks in brightness.