Uh-oh. What happens there is that Windows hides file extensions by default. The .html part doesn't "come from the file itself". There's no such thing. It's the file extension: a part of the filename. It just happened to be set automatically for you when you exported the game.
Tip: set Windows to show file extensions. There's a checkbox hidden somewhere in Explorer's options dialog. You'll thank yourself later.
That said, glad you figured it out. Good luck with your game!