I was reading a section of a chemistry textbook describing electron energy shells. It compares the electrons to light saying that electrons energies are quantized and so are light energies. Electrons can only jump from one specific energy level to another with no intermediary energy levels. I understand that the same is true for the intensity of light, but I still don't understand how the energy of a photon can have only specific amounts of energy like an electron. Aren't there an infinite number of intermediary frequencies in between two frequencies of light? If that is true than doesn't that mean that the energy of photons doesn't skip around like the energy of electrons? Thanks.