In a flame of pure hydrogen gas, burning in air, the hydrogen (H2) reacts with oxygen (O2) to form water (H2O) and releases heat.
If carried out in atmospheric air instead of pure oxygen (as is usually the case), hydrogen combustion may yield small amounts of nitrogen oxides, along with the water vapor.