There is a distinction between electrons and photons when discussing the electromagnetic spectrum.
Electrons are subatomic particles that carry a negative charge. They are fundamental constituents of atoms and are involved in various atomic and chemical interactions. Electrons play a role in the behavior of matter and electricity.
On the other hand, photons are elementary particles that carry energy in the form of electromagnetic radiation. Photons are quanta of light and other forms of electromagnetic waves. They have no mass and travel at the speed of light. When electrons in atoms transition between different energy levels, they can emit or absorb photons, which correspond to specific wavelengths of electromagnetic radiation.
The electromagnetic spectrum encompasses the entire range of electromagnetic waves, which includes various forms of radiation, such as radio waves, microwaves, infrared radiation, visible light, ultraviolet radiation, X-rays, and gamma rays. Each of these forms of radiation consists of photons with different energies and wavelengths.
In summary, electrons are subatomic particles that are part of atoms and have an electric charge, while photons are particles of electromagnetic radiation that carry energy and correspond to different wavelengths within the electromagnetic spectrum.