The relation you remembered is for R-L-C circuit where

for resistor: $V_R=I R$

for inductance: $V_L= Lfrac{dI}{dt}$

for capacitor: $V_C=frac{1}{C}int I dt$

That is the reason why for AC signal $I=I_0 sinomega t$,the voltage for inductance or capacitor are 90 degree out of phase with current.

For electromagnetic wave, it is another sets of equations (it is also related to the above equations under some conditions)

$

abla imesvec{E}=-frac{partial vec{B}}{partial t}$

and

$

abla imes{B}=mu_0 I + mu_0epsilon_0frac{partial vec{E}}{partial t}$

For EM wave in free space, I=0

Combine the above two equations will give us

$

abla vec{E}=mu_0epsilon_0frac{partial^2vec{E}}{partial t^2}$

and

$

abla vec{B}=mu_0epsilon_0frac{partial^2vec{B}}{partial t^2}$

which are standard form for wave equation.

You can chek out

http://en.wikipedia.org/wiki/Electromagnetic_wave for derivation

The wave can be represented with $vec{E}=vec{E_0} sin (vec{k}cdotvec{r}-omega t)$

The change on electric field (flux) will product magnetic field distribution ($

abla imesvec{B}$)at near by space.

The time derivative will produce 90 degree phase differences.

However, the curl will also produce another 90 degree phase differences.

That is why the net effect is in phase. The electric field is in the same phase with magnetic field in free space.

It is possible to produce out of phase EM wave in wave guide.

You are welcomed to check out

Propagation of Electromagnetic Wave:=)