Why does H2 gas give off the light that it does?

When an electric discharge is passed through a sample of H2 gas, light is given off but only at certain discrete frequencies. Explain why only these lines are seen instead of a rainbow-type spectrum.
1 answer 1