a subtance compound of the chemical elements hydrogen and oxygen and existing in gaseous liquid and solid states​