Here's a breakdown:
* Magma: Molten rock *inside* the Earth.
* Lava: Molten rock that has erupted *onto* the Earth's surface.
So, when magma erupts from a volcano, it becomes lava.