The Earth creates lava by the formation of Magma which is formed in the Earth's mantle and crust when temperatures and pressure reach a certain level, causing the rocks to melt into a liquid state.
Magma is also less dense than the surrounding solid rock, which causes it to rise toward the surface of the earth.
And the Magma can then erupt through volcanic vents or fissures on the Earth's surface.
When Magma erupts onto the surface it is called Lava.
And as Lava cools it hardens as it interacts with the surface of the Earth and forms solid volcanic rock.
Lava is basically molten rock or partially molten rock that is expelled from the earth.
Lava on Earth is made of silicate melt, which is a mixture of molten silicate minerals as well as solid particles and also gas bubbles.
The silicate melt is made up of elements such as oxygen, silicon, aluminum, iron, calcium, magnesium, sodium, phosphorus, titanium and potassium.
Silicate melt is the main component of lava as lava is a mixture of molten silicate minerals.
The molten silicate minerals are formed from a combination of elements, which is primarily oxygen and silicon, along with smaller amounts of other elements.
lava can also contain solid particles, which are essentially crystallized minerals, which were floating within the molten rock before the lava erupted.
Another part of lava is volcanic gases.
The volcanic gases like water vapor, carbon dioxide and even sulfur dioxide can get trapped in the lava as the lava cools and solidifies and forms bubbles.
The exact composition of lava can also vary depending on the origin of the lava and the specific geological conditions.
Although lava generally remains a molten rock mixture with a high percentage of silica.
Silicate Lava's are basically molten mixtures that are dominated by silicon and oxygen which are the most abundant elements of the Earth's crust, with smaller quantities of aluminum, calcium, magnesium, sodium, iron and potassium and a small amount of other elements.
Magma consists of liquid rock that usually contains suspended solid crystals.
As magma approaches the surface and the overburden pressure drops, dissolved gases bubble out of the liquid, so that magma near the surface consists of materials in solid, liquid, and gas phases.