Each element, such as hydrogen and iron, has a set of gaps-wavelengths that it absorbs rather than radiates. So if those wavelengths are missing from the spectrum, you know that that element is present in the star you are observing.
Each element, such as hydrogen and iron, has a set of gaps-wavelengths that it absorbs rather than radiates. So if those wavelengths are missing from the spectrum, you know that that element is present in the star you are observing.