Question: how do we know electromagnetic waves are transverse waves?
Answer: Electromagnetic waves are also transverse waves because the direction of particle displacement is also perpendicular to the direction of movement, producing the waveform of visible light, and other types of electromagnetic radiation.