Volcanoes form at plate boundaries or in hotspots in the mantle not associated with plate boundaries. There are three main types of volcanoes: shield volcanoes which have gentle slopes built up from fluid lava flows; cinder cone volcanoes which are steep sided due to explosive eruptions throwing tephra into the air; and composite volcanoes which have layers of both lava and tephra from eruptions that alternate between explosive and nonexplosive. The amount of gas and silica in magma determines the explosiveness of an eruption, with more gas and less silica leading to more violent eruptions as the gas escapes quickly closer to the surface.