What is in a volcanoes?

the magma in the core of the erath pushes it's self through a crack in the erath's crust and when the magma burst out from the pressure behind it, it becomes lava, so magma is in a volcanoe.