How to add a coded HTML game onto an offline html webpage?

How to add a coded HTML game onto an offline html webpage?

Added (1). By this I mean I have an HTML text game called "Drowning in Problems" written by Markus Persson (the man who created Minecraft) that he uploaded as a file, and I just want to be able to execute this game via browser. It's an in-browser HTML text game on his website, and I just want to know how to do this just by executing it as if it were a test webpage.

Added (2). I'm lightly learning web design and to code on my own by putting together a fake webpage. (desktop files and notepad documents)

On chrome, go to the website with the game, open the developer tools (or right click anything on the page, inspect element), go to the sources tab, and look for "game.notch.net" and open the "drowning" folder. You should find index, drowningproblems.dart.js, drowningproblems.css.

Right click each of those 3 files and save them to a folder somewhere on your computer, do not modify the file names.

Then go to this folder and find index.html, open this in a browser. The game should launch.