While comparing the strengths of o-nitrophenol and p-nitrophenol, p-nitrophenol is found to be more acidic. The reason I studied for this is $\ce{H}$-bonding in o-nitrophenol which makes the acid more stable, making it a weak acid.
But between o-methoxyphenol and p-methoxyphenol, o-methoxyphenol is more acidic because of more -I effect at o-position. Doesn't $\ce{H}$-bonding happen here?
Can someone please clarify the exact reason for opposite orders?