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.
- Generate the home page with a well-made request
- Tell structure (HTML) apart from appearance (CSS)
- Adjust the page on a phone, one problem at a time
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.
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 for | What it changes |
|---|---|
color, background | Color of the text and of the background |
font-size | Size of the letters |
padding, margin | Space inside and outside |
@media | Rules 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
- Paste the build request into the tool, open in the folder, and approve the
index.html. - Check the sections, the phone view (narrow the window), the clicks and the made-up texts.
- Make three adjustments, one per request. Change one color in the CSS with your own hands. Save a copy as
index-v1.html.
index-v1.html.Summary
- With a brief, the build request is short and uses only the real texts.
- HTML is what exists. CSS is how it looks. The class links the two.
- One problem per request, with "where, what, on which screen" and "don't change anything else".
- The viewport line makes the phone use the real width of the screen.
Lesson quiz
Three situations to apply what you learned.
Isaque Victor free courses