Volcanoes form in different types depending on the composition of the magma and tectonic setting, with shield volcanoes being non-explosive and forming from basalt in oceanic settings, composite volcanoes sometimes having explosive eruptions from more viscous magma in continental settings, and cinder cones being the smallest from pyroclastic eruptions.