Respuesta :

Each element absorbs light at specific wavelengths unique to that atom. When astronomers look at an object's spectrum, they can determine its composition based on these wavelengths.
Not sure if this is 100% but I hope it helps.