Why does each element have its own characteristic line spectrum?

Atomic Spectra MCQ from the Practice MCQ 0 paper, solved with explanation.

Practice 39 · Atomic (line) spectra

Why does each element have its own characteristic line spectrum?

  1. AAll elements have the same energy levels
  2. BEach element has its own unique set of electron energy levels, so its photon energies (and wavelengths) are unique
  3. CSpectra depend only on temperature
  4. DThe colour of the element decides it