How can you tell a star is mainly comprised of hydrogen from emission spectra? I thought emission spectra were related to the discrete energy levels obtainable by the electron in the atom. But in a star, the temperatures mean that the matter is plasma right? Then aren't all the electrons stripped from the matter? How can spectra exist then? Specifcally the hydrogen ones.