How do electromagnetic waves work?

Anonymous
0
A wave, as I understand, is a disturbance created which causes a change in its surroundings. A longitudinal wave fits this well, is it causes compressions and rerefactions in the medium it is travelling in. These oscillating particles hit other particles and cause them to move and so on. How does a electromagnetic wave work then? Considering it does not always need a medium?