The structure of atoms and the behavior of electrons that cause them to emit or absorb electromagnetic radiation.