Hydrogen lamps work like neon lights, but neon lights 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.