Here's a breakdown:
* Magma: Molten rock found beneath the Earth's surface.
* Lava: Magma that has erupted onto the Earth's surface.
* Igneous rocks: Rocks formed when magma or lava cools and solidifies.
Igneous rocks can be classified into two main types:
* Intrusive igneous rocks: These form when magma cools and solidifies beneath the Earth's surface. They typically have larger crystals due to slower cooling. Examples include granite and gabbro.
* Extrusive igneous rocks: These form when lava cools and solidifies on the Earth's surface. They typically have smaller crystals due to faster cooling. Examples include basalt and rhyolite.