Here's a breakdown:
* Magma: Molten rock found beneath the Earth's surface.
* Lava: Magma that erupts onto the Earth's surface.
* Igneous Rocks: Rocks formed from the cooling and solidification of magma or lava.
There are two main types of igneous rocks, based on where the magma cools:
* Intrusive igneous rocks: These rocks form when magma cools and solidifies *inside* the Earth's crust. They tend to have larger crystals due to slower cooling. Examples include granite and gabbro.
* Extrusive igneous rocks: These rocks form when lava cools and solidifies *on* the Earth's surface. They tend to have smaller crystals due to faster cooling. Examples include basalt and rhyolite.