A wave in motion is said to be transverse if all its points oscillate along paths that are perpendicular to the direction of the wave. Due to the fact that its constituent parts vibrate perpendicular to the direction of its propagation.
Light is a transverse wave. An electromagnetic wave is a light wave. It has a magnetic component that is perpendicular to the electrical component.