Final answer:
The rocks formed from the cooling and solidification of magma are known as igneous rocks, which include both extrusive and intrusive types.
Step-by-step explanation:
The type of rocks formed through the cooling and solidification of magma are igneous rocks. There are two types of igneous rocks: extrusive and intrusive.
Extrusive igneous rocks are formed from lava that reaches the Earth's surface and cools quickly, resulting in fine-grained rocks like basalt.
On the other hand, intrusive igneous rocks are formed when magma cools slowly beneath the Earth's surface, leading to coarse-grained rocks such as granite.