Electromagnetic waves are shown by a sinusoidal graph . It consists of time-varying electric and magnetic fields which are perpendicular to each other and are also perpendicular to the direction of propagation of waves. Electromagnetic waves are transverse in nature.