Suppose an electron in an atom at the K-orbital is sufficiently energized (excited) that it jumps to the L-orbital. When this electron returns to its ground electronic state (it jumps back to the K-orbital), in order to respect the law of conservation of energy, the excess energy it has garnered from the excitation is shed through the emission of a photon, the frequency of which varies with the atom. This is why the burning of sodium chloride atop a near-colourless hydrogen flame produces an intense yellow light.
What is the scientific term for this photon emission? I thought it was Bremsstrahlung, but turns out that refers to a completely unrelated type of photon emission.