Light is an electromagnetic wave. The energy in such a wave is as a result of the electric and magnetic field vectors connected with them. In all electromagnetic waves, the electric and magnetic field vectors are mutually perpendicular to the other person and also perpendicular to the direction in which the wave propagates(transverse wave)