A special type of dipole-dipole interaction that occurs between the lone pair of a highly electronegative atom (typically N, O, or F). It can form between different molecules (intermolecular hydrogen bonding) or between different parts of the same molecule (intramolecular hydrogen bonding).