A photon is not an electromagnetic wave.
Electromagnetic waves are a type of wave that consists of oscillating electric and magnetic fields, which propagate through space and can carry energy and information. Examples of electromagnetic waves include white light, X-rays, and infrared radiation.
A photon, on the other hand, is a quantum of energy that carries electromagnetic force. Photons are the basic building blocks of electromagnetic waves and are responsible for the transfer of electromagnetic energy. Photons can also be thought of as particles of light, as they exhibit both wave-like and particle-like behavior.