Module 2 · Your website

Building the page with AI: generate, look, adjust, repeat

Lesson 5 of 12 9 min lesson Updated on October 30, 2026
Progress in the course42%

In this lesson

You won't write code. You will read enough to know whether the AI got it right.

With the brief ready, generating the page is quick. The work is in looking, finding what is wrong and asking for the right fix without breaking the rest.

The build request

Since the thinking is already in the brief, the request is short: only the technical rules. A single file, with no JavaScript and no libraries, because every line less is one line less that can go wrong. And use only the texts from the brief.

Read the brief.md in this folder and build the home page. Rules: a single index.html with the CSS inside it; no JavaScript; no external libraries; no images (use blocks of color with the comment "photo here"); in English; good on a phone. Use ONLY the texts from the "real content" block. Where it says MISSING, write [MISSING: what is missing]. Then tell me where each section is and which class controls the main button.

HTML and CSS, the minimum

HTML says what exists. CSS says how it looks. The bridge between the two is the class, a nickname. If the tag says class="button", in the CSS the rule .button changes its color, size and spacing.

Look forWhat it changes
color, backgroundColor of the text and of the background
font-sizeSize of the letters
padding, marginSpace inside and outside
@mediaRules that apply only on a small screen

Real example

The owner of a repair shop found the rule .highlight { color: #999; }. The "open today" line was gray and disappeared on a phone in the sun. He changed it to #000, saved, reloaded. Two minutes, without asking the AI for anything.

Tip

To find anything in the file, use Ctrl + F (Command + F on a Mac) and type a piece of the text you see on the screen.

What the pros know

Every generated page should have, inside the <head>, the line <meta name="viewport" content="width=device-width">. Without it, the phone pretends to have a wide screen, of about 980 px, draws the page at that size and then shrinks it. The text comes out tiny and the @media rules for small screens never kick in. If your site "ignores" the phone CSS, check that line before anything else.

Look and ask for the adjustment

Look in four steps: are the sections in order? How does it look on a phone? Does every link work? Is there text you didn't write? Then, one problem per request.

To see how it looks on a phone, narrow the browser window until it is thin, or send the file to yourself on WhatsApp. Most problems show up there: text that runs off the screen, a small button, squeezed columns.

Bad: "it looks odd on a phone, fix it."
Good: "On a phone, in the 'What we have' section, the six items sit in two columns and the text gets cut off. One item per line. Don't change anything else."

The "don't change anything else" keeps the AI from "improving" what was already good. If an adjustment breaks something, say so right away and ask it to undo.

Careful

If an adjustment breaks something that worked, say so right away: "the last adjustment made the menu disappear on the computer; undo it and try another way". In lesson 9 you learn to keep versions so you can go back safely.

Practice · 10 min

  1. Paste the build request into the tool, open in the folder, and approve the index.html.
  2. Check the sections, the phone view (narrow the window), the clicks and the made-up texts.
  3. Make three adjustments, one per request. Change one color in the CSS with your own hands. Save a copy as index-v1.html.
Deliverable: the complete home page, checked on a phone, with three adjustments requested from the AI, one made by you and the copy index-v1.html.

Summary

Sources

Read on October 30, 2026.

  1. MDN. Viewport meta element.

Lesson quiz

Three situations to apply what you learned.

Lesson 5 of 12

Before moving on to the next lesson

Put what you saw into practice. The boxes stay checked in this browser, so you can come back later.

Have a question about this lesson? The IV Help team answers personally on WhatsApp.

Ask on WhatsApp