Igneous rocks are formed by the crystallisation of a magma.
The difference between granites and basaltsis in silica content and their rates of cooling.
A basaltis about 53% SiO2, whereas granite is 73%. Intrusive, slowly cooled inside the crust.
~~ :) hope this helps (: ~~