In the Bohr model the electron of a hydrogen atom can move only in certain allowed orbits, each with a fixed energy. The energies are negative because the electron is bound. The ground state (n = 1) is the lowest at −13.6 eV, and the levels crowd together towards zero as n rises.
When the electron drops to a lower level it emits one photon whose energy equals the gap between the levels. Each gap gives one spectral line, and the lines form series, one for each level the electron falls to.
X-rays come from fast electrons striking a heavy metal target. A laser gives intense coherent light by stimulated emission, which needs a population inversion: more atoms in an excited state than in the lower state.