Hydrogen bonding is a type of dipole-dipole attraction that originates between molecules rather than a covalent link with a hydrogen atom.
The attraction between a hydrogen atom covalently bound to a very electronegative atom like an N, O, or F atom and another very electronegative atom causes it.
The hydrogen bonds are shown by those compounds in which fluorine, oxygen, or nitrogen are covalently bound to hydrogen.
Reason for Hydrogen Bonding Occur in Water:
The water molecule contains an electronegative oxygen atom to which a hydrogen atom is bonded.
In the water, the Hydrogen atom of one water molecule shows the hydrogen bonding with the oxygen atom of another neighbouring water molecule.