Hydrogen forms its oxide (water) which is a neutral oxide.
Reaction: 2H2 + O2 → 2H2O
Halogens (F, Cl etc.) are non metallic in nature. So, halogens form acidic oxide.
Reaction: 2Cl2 + O2 → 2Cl2O
Hydrogen combines with oxygen to form two compounds namely water and hydrogen peroxide. In this reaction the masses of oxygen which combine with a fixed mass of hydrogen bear a simple ratio. The given statement can be explained on the basis of: