Answer:
Lava is the magma expelled during a volcanic eruption. In other words, magma changes its name to lava when it comes to the surface. The molten rock reaches scorching temperatures, exceeding 1500ºC.
When lava gets in contact with surface elements such as air and water, it cools and hardens, forming what is known as igneous rock.
Details:
The rhyolite lava weighs less and has a lighter color than basalt. It is very thick, so it flows very slowly. It eventually condenses around the cavity from which it emerged, often forming a deposit called a lava dome. When it cools rapidly, it can form a natural glass called obsidian.
When lava flows into the sea, it is rapidly cooled by water. When solidified under water, it resembles a pile of pillows, so it is known by the name of pillow lava.