How do astronomers primarily infer the presence and behavior of hydrogen within stars?

Answer

Through spectral analysis of emitted or absorbed light

Hydrogen's electrons transitioning between energy levels cause the emission or absorption of light at specific wavelengths, creating a unique spectral fingerprint that astronomers analyze.

How do astronomers primarily infer the presence and behavior of hydrogen within stars?
hydrogenimportancestarFusion