Why does light come from a combination of colors of all wavelengths?
That means it consists of all frequencies. So how can light take the value of all colors in the electromagnetic spectrum?
When we give energy, the energy levels of Atoms (electrons) jump to the upper layer. where the wavelength variation creates the light. In quantum mechanics, then, the wavelength variation of the photon creates light. As the wavelength increases, electrons + wavelength differentiation (creates the magnetic field).
The wavelength change in e'- + λ electrons creates the magnetic field, so a magnetic field is created.