Our study sets out to identify the difficulties that high school students, teachers, and university students encounter when trying to explain atomic spectra. To do so, we identify the key concepts that any quantum model for the emission and absorption of electromagnetic radiation must include to account for the gas spectra and we then design two questionnaires, one for teachers and the other for students. By analyzing the responses, we conclude that (i) teachers lack a quantum model for the emission and absorption of electromagnetic radiation capable of explaining the spectra, (ii) teachers and students share the same difficulties, and (iii) these difficulties concern the model of the atom, the model of radiation, and the model of the interaction between them.