A highly electronegative element will be bonded to hydrogen. This induces a biased electron cloud, giving the hydrogen a partially positive charge. This hydrogen then has opposite charge attraction between its partial positive charge and lone pairs on other molecules. This only occurs if the hydrogen is bonded to N, O or F. Note: this is why oxygen has a high surface tension