Start Here
You do not need to be a programmer to make a simple HTML app. You can ask an AI tool to write the code for you. Then you copy that code, paste it into a text editor, save it as an HTML file, and open it in a browser.
Ask the AI for a single-file app
Example: “Make me a single-file HTML typing game for kids with bright colors and saved progress.”
Copy all the code the AI gives you
Usually the code starts with <!DOCTYPE html> and ends with </html>.
Paste it into a plain text editor
On Windows this can be Notepad. On Mac this can be TextEdit, but it must be switched to plain text.
Save the file as something like MyApp.html
Then double-click it to open it in Chrome, Edge, Safari, or another browser.
What AI Can Do
AI coding tools can create starter code for simple offline apps, especially when you ask clearly. They are best for beginner projects that can live in one HTML file.
Good beginner projects
- typing games
- math quiz apps
- flash cards
- matching games
- spelling practice
- simple trackers
- reading comprehension apps
Harder projects
- online multiplayer games
- apps with user accounts
- apps needing databases
- mobile app store publishing
- big projects with many files
How to Ask AI for Code
The more specific you are, the better the code usually is. Tell the AI exactly what you want the app to do, who it is for, and how you want it delivered.
Good prompt formula
Example prompts
Game example
Learning app example
Better prompt: “Make a single-file HTML spelling game for early readers with 10 animal words, large buttons, and offline use.”
Copy the Code from the AI
After the AI writes the code, you need to copy all of it. Do not copy only part of the file.
Look for the code block
The code usually starts with <!DOCTYPE html>.
Use the copy button if there is one
Many AI tools show a copy icon on code blocks. That is the easiest method.
If there is no copy button, highlight everything
Click and drag from the top of the code to the bottom, then copy it.
Make sure the last line is included
The file should usually end with </html>.
Windows Steps
On Windows, Notepad is usually the easiest place to paste the code.
Open Notepad
Click Start and type Notepad, then open it.
Paste the code
Click inside Notepad and paste everything you copied from the AI.
Save As
Go to File → Save As.
Name it with .html
Example: TypingGame.html
Set file type to All Files if needed
If Notepad tries to save it as a text file, choose All Files and then name it TypingGame.html.
Open the file
Go to the folder where you saved it and double-click it.
Mac Steps
On Mac, TextEdit often opens in rich text mode. That is a problem for code. You need plain text mode.
Open TextEdit
Use Spotlight or open it from Applications.
Make a new document
If it opens a rich text page, switch it before pasting code.
Change to plain text
Go to Format → Make Plain Text.
Paste the code
Paste all the HTML code into the plain text document.
Save the file
Use File → Save, and name it something like TypingGame.html.
If Mac warns about the extension, keep .html
Do not switch it back to .txt.
Open the App
Once the file is saved correctly, you usually just double-click it. It should open in your web browser.
What should happen
- the browser opens
- your app appears
- buttons work
- the app runs offline
If double-click does not work
- right-click the file
- choose Open With
- pick Chrome, Edge, or Safari
Common Mistakes
The file saved as .txt instead of .html
Rename it so the ending is .html.
Only part of the code was copied
Go back to the AI and copy the whole code block again.
Mac TextEdit was left in rich text mode
Start over in plain text.
The AI created multiple files
Ask again: “Rewrite this as a single-file HTML app with all CSS and JavaScript included.”
The app looks broken
Ask the AI: “The code does not work. Please rewrite the full corrected single-file HTML.”
Prompt Builder
Fill these in, then copy the finished prompt and paste it into ChatGPT, Claude, Gemini, or Copilot.
Quick Quiz
Test whether you understand the basic idea.
Question 1
What should you ask the AI for if you want the easiest beginner setup?
Question 2
What extra step is usually needed on a Mac in TextEdit?
Question 3
What file ending should the finished app usually have?