You've never written a line of code, yet you'd like a small web page: an introduction to your club, an announcement for the neighborhood block party, a page for a workshop. With an AI assistant, you can do it in one evening. As long as you follow a method, and don't ask "make me a website" hoping for a miracle.
To understand the idea and the tools, first read our article on vibe coding. Here, we get hands-on: a mini project, step by step, with prompts to copy.
The project: one page, one file
We're aiming small: a single page, in a single index.html file. No server, no installation, no database. You open the file in your browser and see the result.
As an example, we'll use the page for a neighborhood book club. Swap in your own project.
Step 1: requirements in 5 lines
Before opening the assistant, write five lines. That's what separates a page that feels like yours from a generic one.
- Who it's for: people in the neighborhood who don't know the club.
- The goal: make them want to come to the next meeting.
- The content: introduction, meeting dates and place, book of the month, contact.
- The style: warm, simple, easy to read on a phone.
- Out of scope: no online sign-up, no payment, no form.
The fifth line is the most important: it stops the AI (and you) from going off in every direction.
Step 2: a plan before the code
Don't ask for the code right away. First check that the assistant has understood, before it writes two hundred lines.
I'm not a developer. I want to create a simple web page in a single index.html file, with no installation at all. Here are my requirements: [paste your 5 lines]. Before writing any code, suggest a plan: the sections of the page in order, and what each will contain. Ask me any questions you need.
Answer its questions and adjust the plan. The six-move brief method works really well here.
Step 3: generate a single file
Once the plan is approved:
The plan works for me. Write the complete index.html file, with the styling included in the same file. No external library, no other file. Put placeholder text in square brackets wherever I need to fill something in. Add short comments in English to mark each section.
The comments will help you find your way around. The brackets stop the AI from inventing an address or a time.
Step 4: open it in your browser
Create a folder called my-page. Open a plain text editor (Notepad on Windows, TextEdit in plain text mode on Mac), paste the code and save it as index.html. Check that the extension really is .html and not .html.txt.
Double-click the file: it opens in your browser. Your page runs locally, on your computer, without anyone else seeing it. Shrink the window to get a preview of how it looks on a phone.
Step 5: change one thing at a time
Want to change the color, add a photo and move the contact section? That's three requests, not one.
In my index.html file (pasted below), change only the color of the headings to dark green. Don't change anything else. Send me back the complete file.
After each change: save, refresh, check. If something breaks, you know which request caused it.
Step 6: understand each block
You don't need to master everything, but you do need to know what each part is for. Otherwise, you won't be able to fix anything.
Explain this file to me as if I'd never coded. Break it into blocks and, for each one, tell me in one sentence what it does and what would happen if I deleted it.
You'll see three main parts: the structure (HTML, what's displayed), the style (CSS, how it looks) and sometimes a bit of JavaScript (what reacts to clicks). If an explanation is still fuzzy, ask again about that specific block.
Step 7: fix a bug properly
One day, a button won't respond. The bad prompt: "it doesn't work." The good one gives what you see and the error message. To find it, right-click on the page, choose "Inspect," then the "Console" tab: errors show up in red.
When I click the "See the book of the month" button, nothing happens. I expected the summary to appear. The console shows: [paste the exact message]. Here's my file: [paste the file]. First explain the likely cause, then suggest the smallest possible fix.
The two-strikes rule
If the AI fails twice on the same bug, stop rephrasing. Change your approach:
Don't change the code. List three possible causes of this problem and, for each one, how to check whether it's the right one.
Often, going back to the last version that worked is faster than fighting it.
Step 8: save versions
Before each major change, copy the file: index-v1.html, index-v2.html, and so on. It's basic, but the day everything breaks, you reopen the last version that worked. Later on, you'll move to a real version control tool like Git.
What's next: putting it online
Happy with your page? The next step is to put it online so you get an address to share. Some hosting services accept a single HTML file: ask your assistant to walk you through the options step by step. Proofread the page first: no personal information you don't want made public.
And if one page is no longer enough, our guide to building a website with AI takes you from the site plan to going live, page by page.
What you don't do alone
A presentation page, yes. But some things call for a professional:
- Online payments: a mistake costs money.
- User accounts and passwords: security is a profession in itself.
- Personal data: collecting names or emails comes with legal obligations.
- Security of an online service in general.
And one absolute rule: never paste an access key or a password into a conversation with an AI or into your file. If it happens, change it immediately.
Want a more ambitious project? Read our guide to nailing your first AI project.
Going further
On Ovrelia, the Forge island lets you practice this approach. The first chapter, "From Chat to Editor," is free and plays in your browser, no account needed: you learn to read a diff and fix your first bug right there. Start the chapter. And to test your reflexes with ten timed questions, launch the friend challenge.
Frequently asked questions
Do I need to install software to create my first web page with AI?
No. An AI assistant, a plain text editor already on your computer and your browser to open the index.html file are all you need.
What should I do if the code the AI gives me doesn't work?
Describe what you see and what you expected, and paste the error message from the browser console. After two failures, ask for possible causes without changing the code, or go back to your last working version.
Can I build a site with payments or a members area without being a developer?
Not on your own. Payments, user accounts and personal data raise security issues and legal obligations that call for a professional's help.
Do I need to understand all the code the AI generates?
Not every line, but you do need to know what each block is for. Otherwise, you won't be able to fix or change your page without depending entirely on the assistant.