Here's a breakdown:
* Magma: Molten rock found beneath the Earth's surface.
* Lava: Magma that has erupted onto the Earth's surface.
* Igneous rock: Rock formed when magma or lava cools and solidifies.
There are two main types of igneous rocks:
* Intrusive igneous rocks: Formed when magma cools and solidifies beneath the Earth's surface. These rocks tend to have larger crystals due to the slower cooling process. Examples include granite and gabbro.
* Extrusive igneous rocks: Formed when lava cools and solidifies on the Earth's surface. These rocks tend to have smaller crystals due to the faster cooling process. Examples include basalt and rhyolite.