Water, H2O, has molar mass 18. Hydrogen : oxygen by mass = 1 : 8. Electrolysis gives hydrogen : oxygen = 2 : 1 by volume. Hydrogen bonding explains water's high boiling point and why ice floats.
Water is a bent, polar molecule. Its fixed composition is 11.1% hydrogen and 88.9% oxygen by mass. Hydrogen bonds between molecules give water a high boiling point, a high specific heat and a lower density as ice than as liquid, which is why lakes freeze from the top. Keep the 18 g per mole figure ready: almost every water calculation starts with it.