Here's a breakdown:
Dikes:
* Definition: Dikes are tabular (flat and sheet-like) intrusions of igneous rock that cut across existing rock layers.
* Formation: Magma is forced upward through cracks and fractures in the surrounding rock. The magma then cools and solidifies, creating the dike.
* Key Characteristic: Dikes are discordant, meaning they cut across the existing rock layers.
Other ways dikes can form:
* Along existing fault lines: Magma can exploit weaknesses in the rock, like fault lines, to intrude and solidify as a dike.
* Within existing rock structures: Dikes can also form within existing rock structures, such as folds or joints.
Not just magma:
* While most dikes are formed from magma, there are also some that are formed from other materials, such as:
* Sedimentary dikes: These form when sand or mud is injected into fractures.
* Hydrothermal dikes: These form when hot water and dissolved minerals are injected into fractures.
In summary: While dikes do form when magma forces itself between rock layers and hardens, they can also form through other mechanisms. The key characteristic of a dike is its tabular shape and discordant nature.