Quantum mechanics
Hydrogen lamps work like neon lamps, but neon lamps have their own unique group of colors (and frequencies) of light. Scientists learned that they could identify all elements by the light colors they produce. They just could not figure out how the frequencies were determined.