# What are the prerequisites in hydrogen bonding?

I know when a hydrogen bond is, but - can hydrogen bonds only occur between two molecules containing hydrogen? Or, only one of the molecules should contain hydrogen and the other one may not contain hydrogen, but should have a large electronegative difference between two of its sides?

Actually, theoretically speaking hydrogen bond is the attractive force between the hydrogen attached to an electronegative atom of one molecule and an electronegative atom of a different molecule. Usually the electronegative atom is oxygen, nitrogen, or fluorine, which has a partial negative charge. A hydrogen bond may occur between $\ce{H-O}$, $\ce{H-N}$, $\ce{H-F}$ (first two are more common). Apart from that, these hydrogen-bond attractions can occur between molecules (intermolecular) or within different parts of a single molecule (intramolecular)