According to Maxwell, In an electromagnetic wave, there is a magnetic field component and an electric field component that are perpendicular to each other and the direction of propagation of the wave is perpendicular to both the component vectors.
A changing magnetic field induces an electric field and a changing electric field produces a magnetic field.
The Law of electromagnetism states that “An accelerated charge produces electromagnetic wave”.
Electromagnetic waves do not need a medium to propagate.
Light as an electromagnetic wave:
Maxwell predicted that electromagnetic waves move at the speed of light. This led to the theory that light is also an electromagnetic wave.
Light is also a combination of the oscillating electric and magnetic fields that are perpendicular to each other and wave propagation is perpendicular to both fields.
Light is produced by acceleration of charged particles (photons), therefore, by law of electromagnetism light is an electromagnetic wave.
Also like an electromagnetic wave, light also does not need any medium to propagate. It can travel in a vacuum too.
So by all these properties, light is considered as an electromagnetic wave.