Transverse waves are those waves in which particles of the material medium vibrate perpendicular to the direction of propagation of the wave.
Electromagnetic waves are created between an electric field and a magnetic field due to vibrations.
Based on the perpendicular movement of the medium particles to the direction of propagation of the wave, electromagnetic waves are classified as transverse waves
Hence, electromagnetic waves are transverse waves.