In o-nitrophenol, hydrogen of O−H group and oxygen of nitro group form intramolecular hydrogen bonding producing a six membered ring structure while in m-nitrophenol, p-nitrophenol and phenol, intermolecular hydrogen bonding are present. The structure is,