Igneous rocks are formed from the cooling and solidification of magma, which can either be acid or basic based on its mineral composition. They are classified into intrusive and extrusive types, with various textures such as glassy, aphanitic, phaneritic, and porphyritic reflecting the cooling history. Additionally, igneous rocks can be categorized by their mineralogy and chemical composition, ranging from ultrabasic to acid rocks.