A volcano is an opening in the Earth's crust through which magma and gases erupt. It consists of three main elements - a vent, conduit, and magma chamber. There are different types of volcanoes defined by their structure, including composite/stratovolcanoes with steep slopes built up of layers of pyroclastic material, shield volcanoes with broad dome shapes built up by fluid lava flows, and cinder cone volcanoes built from loose bits of ejected magma. Volcanic activity occurs at constructive and destructive plate boundaries, with different eruption styles depending on the tectonic setting and rate of pressure release.