The quantum theory

is based on the existence of packets (quanta) of energy. It was extended to electrons by Neils Bhor when he suggested that electrons exist in a set of precise orbitals in an atom. Hence for electrons to move from one orbital to another, energy of a particular frequency has to be absorbed or emitted.