why p-nitrophenol is more acidic than o-nitrophenol?
In p-nitrophenol there is intermolecular hydrogen bonding whereas in o-nitrophenol there is intramolecular hydrogen bonding; as intermolecular hydrogen bonding is stronger, the electron density in the hydrogen attached to the oxygen is pulled by the oxygen of another molecule and hence that hydrogen becomes more acidic (note that if a hydrogen attached to a molecule is more acidic the molecule is said to be more acidic)