I am wondering why google ads displaying even the html file I am viewing is stored in my PC. Is this normal or something is wrong
Is normal because if your PC is connected to the internet it should continue to display ads. Try it by disconnecting the internet
AdSense can use keywords in the URL to figure out what ads to display, even if it can't actually crawl your local computer. Cryo.