How does Earth’s magnetic field provide evidence for seafloor spreading?

It creates a pattern of alternating rock stripes on both sides of a mid-ocean ridge.
It allows scientists to determine the age of drilling samples.
It causes magma to harden quickly underwater.
It shows that younger rocks are located deeper underwater than older rocks.