Explanation
H attached to F/O/N
When hydrogen is bonded to fluorine, oxygen or nitrogen, it gets very positive and attracts a lone pair on another such atom. That's a hydrogen bond.
H attached to F/O/N; dotted line to another F/O/N
Water molecules linked in a network
Between molecules, it's intermolecular. It holds water molecules together, so water boils at a hundred degrees while hydrogen sulphide is a gas.
Water molecules linked in a network
O-nitrophenol
Within the same molecule, it's intramolecular. Ortho-nitrophenol bonds to itself, so it doesn't stick to neighbours.
Lower boiling point, more volatile.
Ice lattice with open spaces
In ice, hydrogen bonds make an open cage structure. That's why ice is less dense than water and floats.
Ice lattice with open spaces