Electromagnetic radiation can exist only in certain wavelengths, which are related to the frequency of the photons.