Sure, here is a simple text-based guessing game implemented in a single HTML file using JavaScript:
Welcome to the Number Guessing Game!
I'm thinking of a number between 1 and 100. Try to guess it!
You can copy and paste this code into an HTML file and open it in a browser to play the number guessing game. Good luck!