When solids, liquids, or condensed gases are heated sufficiently, they radiate some of the excess energy as light. Photons produced in this manner have a range of energies, and thereby produce a continuous spectrum in which an unbroken series of wavelengths is present.
In contrast to continuous spectra, light can also occur as discrete or line spectra having very narrow linewidths interspersed throughout the spectral regions. Exciting a gas at low partial pressure using an electrical current, or heating it, will produce line spectra. Fluorescent light bulbs and neon signs operate in this way. Each element displays its own characteristic set of lines, as do molecules, although their spectra are generally much more complicated.
Each emission line consists of a single wavelength of light, which implies that the light emitted by a gas consists of a set of discrete energies. For example, when an electric discharge passes through a tube containing hydrogen gas at low pressure, the H2 molecules are broken apart into separate H atoms and a blue-pink color is observed. Passing the light through a prism produces a line spectrum, indicating that this light is composed of photons of four visible wavelengths.
The origin of discrete spectra in atoms and molecules was extremely puzzling to scientists in the late nineteenth century. According to classical electromagnetic theory, only continuous spectra should be observed. Other discrete lines for the hydrogen atom were found in the UV and IR regions. Johannes Rydberg generalized Balmer's work and developed an empirical formula that predicted all of hydrogen's emission lines, not just those restricted to the visible range, where, n1 and n2 are integers, n1 < n2
Even in the late nineteenth century, spectroscopy was a very precise science, and so the wavelengths of hydrogen were measured to very high accuracy, which implied that the Rydberg constant could be determined very precisely as well. That such a simple formula as the Rydberg formula could account for such precise measurements seemed astounding at the time, but it was the eventual explanation for emission spectra by Neils Bohr in 1913 that ultimately convinced scientists to abandon classical physics and spurred the development of modern quantum mechanics.
This text is adapted from Openstax, Chemistry 2e, Section 3.1: Electromagnetic Energy.