In this lesson
One folder, one text window and one file. That is all the environment you need.
Programmers like to complicate the environment. For what we are going to do, all it takes is a well-named folder, a terminal you know how to open and the .html file.
- Open the terminal and go into the project folder
- Understand what an .html file is
- Open the first page, written by the AI, in the browser
The project folder
Everything lives in a single folder. This defines what the AI sees. If you open the tool inside school-site, it sees only what is in there. If you open it in Documents, it sees contracts, spreadsheets and photos.
- A name with no spaces and no accents:
bakery-site. - A place that is easy to find: inside Documents, for example.
- Only project files. The customer spreadsheet stays out.
The terminal without fear
The terminal is a window where you type commands instead of clicking. In the whole course, you use three.
| Command | What it does | Example |
|---|---|---|
cd | Goes into a folder | cd Documents/bakery-site |
mkdir | Creates a folder | mkdir bakery-site |
claude | Opens Claude Code in the current folder | claude |
To open it: on Windows, right-click inside the folder and choose "Open in Terminal". On a Mac, press Command + Space and type "Terminal". On Linux, use Ctrl + Alt + T.
Tip
Don't know the path? Type cd, a space, and drag the folder into the terminal window. The path shows up by itself. Press Enter.
What an .html file is
A website is made of text files. The main one ends in .html. Inside it there are markings between less-than and greater-than signs, the tags. The browser reads the tags and draws the page.
<title>is the name on the browser tab.<h1>is the main heading and<p>is a paragraph.<a href="...">is a link.- Every tag that opens closes with a slash:
</p>.
You don't need to memorize them. You need to recognize them. When the AI says "I put the phone number below the heading", you open the file, find the <h1> and see the paragraph right after it. The main page is called index.html: it is what the server delivers when someone visits the address without pointing to a file.
What the pros know
Double-clicking index.html opens the page as file://, and that has a limit. In this mode, the browser blocks some features for security, such as JavaScript modules, which give a CORS error. That is why people who work with websites test through a local server, which delivers the page through http://localhost. The AI sets up this server with one command, if you ask. If something works on the server and breaks from the file, this is why.
The first conversation with the code
With the terminal in the folder, ask for: context, content, requirements and an explanation. That last item turns the AI into a teacher: it writes and it explains. The tool will ask for permission to create the file. Approve, open the folder and double-click index.html.
Careful
The WhatsApp number in the example is made up. Use yours in the international format: 55 (Brazil's country code), area code and number, with no spaces. And click the link to check it.
Practice · 10 min
- Open the terminal in the project folder and type
claude. - Paste the request below, with your details. Approve and open
index.htmlin the browser. - Open the file in the editor, change one word in the paragraph, save and reload.
index.html open in the browser, with one change made by you and one made by the AI.Summary
- The folder defines what the AI sees: no spaces, no accents, only the project.
- Three commands are enough: cd, mkdir and claude.
- An .html file is text with tags. The browser draws the page.
- file:// is yours alone. Some features only work through a local server.
Sources
Read on October 30, 2026.
- MDN. JavaScript modules: loading the HTML through file:// causes a CORS error, and testing should be done through a server.
Lesson quiz
Three situations to apply what you learned.
Isaque Victor free courses