Hydrogen bonding is a type of dipole-dipole interaction that occurs between a hydrogen atom bonded to a highly electronegative atom (such as N, O, or F) and another electronegative atom. In the case of HI, the hydrogen atom is bonded to iodine, which is a highly electronegative atom. This creates a polar bond with a partial positive charge on the hydrogen atom and a partial negative charge on the iodine atom. The partial positive charge on the hydrogen atom can then interact with the partial negative charge on another iodine atom, creating a hydrogen bond.
Hydrogen bonding is a strong intermolecular force, and it can have a significant impact on the properties of a substance. For example, hydrogen bonding is responsible for the high boiling point of water and the ability of ice to float on water.