what are the different types of rocks?
Rocks are generally classified into three types: igneous rocks, sedimentary rocks, and metamorphic rocks. Igneous rocks are formed from the cooling and solidification of molten magma or lava. They can be further categorized into felsic, mafic, and intermediate rocks. Sedimentary rocks are formed from the accumulation and compaction of sediment at the Earth's surface. Metamorphic rocks are formed from the transformation of existing rocks due to the application of heat and pressure.