The energy levels of atoms and molecules and the transitions between them that produce the observable spectra.