Atomic and molecular spectra are the characteristic patterns of emission or absorption of energy by atoms or molecules.