Editorial note: This is a single-project walkthrough, not a benchmark or a ranking of tools. See our editorial and affiliate disclosure.

Setup in ten minutes

Use Anthropic's official Claude Code documentation, starting with its Quickstart, to pick the current installation instructions for your operating system and shell. Ten minutes is a rough allowance for getting oriented if your tools and sign-in are already set up. A new installation or an account setup may take longer. You'll also need Git, a web browser, and a plain text editor that can save a file as .html.

A terminal runs a shell, which is the program that reads commands such as cd. The shell commands below are written for macOS or Linux shells such as Bash and Zsh, and for PowerShell on Windows. Use the terminal environment supported by the Claude Code installation instructions you followed. Type the following lines at the shell prompt, one at a time, and press Enter after each one.

claude --version
git --version

A version number tells you the shell found the program, not that your account is ready to use it. If either command is missing, stop and check that tool's installation instructions before moving on. If you just installed it, try the command in a new terminal window first.

Start somewhere you keep practice projects, outside any existing Git repository. Make a new folder for this exercise so you can tell which files appeared during the session. Keep private documents and credentials out of it. Run each line only if the previous one succeeded, and pick a different fresh folder name if the first command says it already exists.

mkdir claude-code-practice
cd claude-code-practice
pwd
git init
claude

The path printed by pwd should end in the folder you created. git init sets up local change tracking without publishing anything or making a commit. claude starts the interactive session, where you'll paste the prompts from the next section instead of shell commands. If asked to sign in, follow the official sign-in flow and keep passwords or tokens out of the agent conversation. If Claude Code asks whether you trust the folder, check the path and confirm only for the practice folder you just created. Starting there gives the session a working directory, not a guarantee that it cannot access files elsewhere.

If you're new to a tool that works with files instead of just answering in chat, read what an AI coding agent does. For this project, keep a second terminal handy for the Git commands you will run yourself. In that second terminal, use cd with the full practice-folder path from pwd, putting the path in straight double quotes if it contains spaces.

Your first build

Start with a read-only request in the Claude Code session. You want to see which file Claude proposes to touch and what it thinks the browser should do afterward.

Plan a small static website for a fictional reading room.
It should use one file named index.html and open directly in a browser.
It needs a heading and a link that jumps to a section called Where to return books.
Do not create or edit files or run shell commands yet.
Tell me what you would write and how I can check it in the browser.

Look for a plan that names index.html as the only file and uses a link to a heading on the same page. If the plan proposes setting up a framework or starting a server, ask for a simpler plan before giving permission to write. You should be able to describe the proposed page yourself before proceeding: a reader opens the notice and can jump straight to the return instructions.

Once the plan matches, paste this in the same session.

Create only index.html in the current practice folder.
Use Reading room returns for both the browser tab title and the main heading.
Add a short introduction that identifies the notice as a fictional sample.
Add a link labeled Jump to return instructions with href="#returns".
Add a heading named Where to return books with id="returns".
Under that heading write: Leave books in the blue tray by the door.
Use semantic HTML, and if you add CSS, keep it inside this file and preserve visible keyboard focus.
Do not add JavaScript, packages, external assets, or other files.
Do not run shell commands, stage changes, or publish anything.
After writing, tell me what you changed and which checks I still need to run.

Read the filename and proposed action on any permission prompt before answering it. Approve the single intended edit if the request matches and decline commands that install software, read unrelated folders, or send files elsewhere. The exercise only requires you to let Claude write one local file. If it asks for broader access, keep that request denied and ask it to explain why the edit needs it.

Open your practice folder in the file manager and double-click index.html to open it in the browser. Open the same file in your editor so you can compare the page with its source. If the agent cannot write the file, ask it to print the complete HTML and save it yourself as plain text under the same name. If that still leaves you without a working file, use this reference and continue with the checks below.

<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>Reading room returns</title>
</head>
<body>
  <main>
    <h1>Reading room returns</h1>
    <p>This is a fictional reading room notice.</p>
    <p><a href="#returns">Jump to return instructions</a></p>
    <h2 id="returns">Where to return books</h2>
    <p>Leave books in the blue tray by the door.</p>
  </main>
</body>
</html>

Reviewing what it wrote

Before trusting the summary from Claude, check the saved file and try the page yourself. Do this before saving your baseline, which is the version you'll compare against after the next edit.

  • Confirm index.html is the only project file apart from Git's own .git folder.
  • Look for "Reading room returns" in the browser tab and the main heading.
  • Use Tab to visibly focus the link, then Enter to activate it.
  • Check that the address ends in #returns and the link reaches "Where to return books."
  • Confirm that the notice says it's fictional and the instruction says "blue tray by the door."
  • Narrow the browser window until it's about the width of your phone, then check whether any text or the link forces you to scroll sideways.
  • Check the page again after enlarging the text: the title and instructions should still be readable without hiding any line behind the edge of the window.

A short page may already fit in the window, so the screen might barely move when you activate the link. Check that the address changes and that the heading's id exactly matches the part of the link after #. In your editor, also check for unexpected scripts or references to external resources, even if everything looked fine in the browser.

Save a baseline and review one edit

Run the next commands in your second terminal, not in the Claude conversation. The first line should list the new file as ?? index.html, which means Git has not started tracking it. If it lists extra files, inspect them before running the next line.

git status --short --untracked-files=all
git add -- index.html
git --no-pager diff --cached -- index.html

git add stages a copy of the reviewed file in Git's index, where Git keeps the version selected for a future commit. The last command shows that copy as a new file, with its added lines marked +. Leave that copy staged throughout the exercise so it remains your baseline. You do not need to make a commit.

Suppose the reading room moves its returns tray to the desk. Give Claude one change to make, leaving the rest of the page as it was.

Edit index.html only.
Replace "Leave books in the blue tray by the door." with "Leave books in the green tray beside the desk."
Keep the link, headings, and all other content and formatting unchanged.
Do not run commands or stage the change.

If Claude cannot write the change, replace the sentence and save the file yourself before continuing. Back in your second terminal, compare the saved file to the staged copy.

git status --short --untracked-files=all
git --no-pager diff -- index.html

AM index.html means the file is staged as added and has another modification that you haven't staged. In the diff, the - line should name the blue tray and the + line should name the green one. Lines without those markers show the surrounding HTML for context. If Claude also reformatted the page or rewrote the heading, ask it to remove those changes and run the diff again. Reload the browser to confirm the new instruction is visible and test the link again with the keyboard. You're done when the file list is unchanged, the diff shows only the requested edit, and the page passes both browser checks.

Settings that matter

For a first project, choose a permission mode that lets you review edits rather than one that approves them automatically. Anthropic's Claude Code documentation on permissions explains the available modes, including Plan Mode for exploring a project without editing its files. The first prompt in this tutorial asks for read-only behavior in words; a prompt alone is not a permission setting. On a project you care about, check the active mode before you send a request that must not change files.

Project instructions and permissions do different jobs. A project CLAUDE.md can tell Claude to keep the site in plain HTML, while permission settings govern which tool actions are allowed or require approval. See the Claude Code documentation on memory and settings for the distinction and the current configuration options. You don't need a project instruction file, custom permission rules, or integrations for this exercise. If you can't account for an existing always-allow rule, resolve that before using the session on files you care about.

Use claude --help at the shell prompt to check which launch flags your installed version supports. If a permission label in your terminal differs from an example you've read, check the documentation for your version instead of guessing what it allows. If you'd prefer to work in a browser or editor instead of a terminal, compare the leading vibe coding tools before starting your next project.

Where it struggles

A vague instruction like "fix the link" gives Claude room to replace markup that was already working. If the link fails, describe the exact symptom and ask it to compare the link's href with the target heading's id before changing anything. A mismatch needs a change on one line, not a button, a script, or a new layout. When the code already matches, reload the file and check the filename and path in the browser before asking for a second fix.

Claude also can't supply facts you haven't given it about a real reading room. If you adapt the page, get the return instructions from the people who run the space and give the agent the exact text. Keep any claims about what passed separate from what was merely written: an edit summary can't show that you saw focus on the link or that the text was readable in a narrow window. Those are checks you can repeat after every edit.

For a follow-up that starts with the information a visitor needs and works up to a complete site, see /build/build-a-website-with-ai. The Build with AI hub has more exercises for choosing and reviewing your next build.