Part 2 of 4 in the Build a Website With Claude series. Part 1, Plan it · Part 3, Put it online · Part 4, Get found
To build a website with Claude, you have it read your site brief, build the homepage first with a shared design, and then build each remaining page from that same design, one page per round. You check every page, ask for specific fixes, and finish with a 404 page, a privacy page, and a favicon.
This post picks up where Part 1 left off. You should have a project folder open in Cowork or Claude Code, with a CLAUDE.md file holding your site brief and page list. If you don’t have those yet, start there. Every prompt below reads from that file.
Why the homepage comes first
Your homepage sets the look for everything else, including the colors, fonts, menu, and footer. If you build five pages at once, you’ll get five slightly different versions of your site and spend your next rounds making them match. If you build one page, get it right, and save the design choices, every later page starts from something you’ve already approved.
Version one of your design can be simple. One color scheme, one font, your site name as text instead of a logo. My site has a light mode and a dark mode now, but you don’t need both to launch.
Step 3. Build a shared design and your homepage first
This step builds two things at once. You get a homepage, and you get a shared style file that every other page links to. Change a color in that one file and it changes everywhere.


Your research first
Taste is yours to decide. Claude can suggest options, but it can’t know what feels like you.
- Colors. Pick one or two main colors. If you have a logo, pull them from it. If you don’t, type “suggest three options” in the prompt and pick one.
- Font feel. Friendly, bold, classic, or simple. You don’t need a font name.
- Logo. If you have one, drop the image file into your project folder first. Claude writes code well and edits images less well, so a logo that’s already the right size saves you a round. If not, your site name in text works fine for version one.
- Light, dark, or both. One is enough to launch.
The prompt
HTML is the file type every web page is written in, and CSS is the file that controls how it looks. You won’t edit either by hand. Both are plain text, like the .txt files you already know, with a different ending on the file name.
Watch each change in Claude Code
If you’re using the Code tab, this is where it pays off. Set the permission mode under the prompt box to Manual. Claude then shows you a diff (a before-and-after view of exactly what will change in a file) and waits for you to approve or decline each change before it saves anything. That’s the “check, then do another round” idea built into the tool.
To see the page, click the path to your homepage file when Claude mentions it in the chat. In a local session, that opens the page in the app’s built-in browser pane, according to Anthropic’s Claude Code docs. Claude can also open a preview on its own after it edits, and check its own work.
There’s also a Plan mode, where Claude proposes an approach without editing any files. It’s useful when you want to talk through a bigger change before anything moves.
In Cowork, open your project folder in Finder or File Explorer and double-click the homepage file (usually index.html). It opens in your regular browser. Refresh the browser after each round to see the changes.
What to check
- Open it on a phone-sized window. Drag your browser window narrow, or open the file on your phone. Text should be readable without zooming, and the menu shouldn’t spill off the screen.
- Read every word. Anything that sounds like a claim you didn’t make has to go. Watch for invented reviews, numbers like “500+ happy clients,” or a city you don’t serve.
- Check the contrast. Light gray text on a white background looks nice and is hard to read. If you squint and the text fades, it’s too light.
- Find the placeholders. Claude should have listed them. Make sure each one is easy to spot on the page.
If it needs another round
Be specific about what and where. “The headline is too big on my phone. Make it smaller on small screens only.” works. “Make it pop” doesn’t, because Claude has to guess.
Change one or two things per round. If you ask for eight changes at once, it’s harder to tell which change broke something. When you like the result, say so, and ask Claude to update the Design notes in CLAUDE.md if anything changed.
If the design isn’t close after two or three rounds, go back to the sites you listed in your brief. Tell Claude what specifically you like about one of them, like “big photo at the top, short paragraphs, one button,” and ask for a new version based on that.
Checkpoint. You have a homepage you like, a shared style file, and Design notes in CLAUDE.md.
Step 4. Build your core pages from the same design
Now you build the rest of your page list, one page per round. Each page reuses the shared styles, menu, and footer, so they match without extra work.



Your research first
Claude can’t write your bio, your services, or your prices from nothing. If it tries, you get pleasant filler that could be about anyone.
For each page, write rough notes in your own words before you paste the prompt. Bullet points are fine. Typos are fine. What matters is that the facts come from you, like what you do, who it’s for, what it costs if you list prices, and what you want people to do next.
The prompt
What to check
- The menu works from every page. Click each menu link from the new page. Every one should land somewhere.
- “What you changed from my notes.” Read that part of Claude’s reply carefully. Tightening is fine. A new claim isn’t.
- It looks like the homepage. Same colors, same fonts, same footer. If it drifted, the next round fixes it.
If it needs another round
If a page drifts from the design, say, “This page doesn’t match the homepage. Compare them and make this one match the shared styles.” If Claude keeps getting the same thing wrong across pages, that’s a sign the rule belongs in CLAUDE.md. Ask Claude to add it there, like “Buttons always say Book a Visit, never Book Now.” That’s how my own project file grew. Every rule in it is something I had to repeat at least twice.
When a page links to something that doesn’t exist yet, that’s expected while you’re mid-build. Keep a list, and check it again before you launch.
Checkpoint. Every page on your page list exists, matches the homepage, and has its placeholders listed.
Step 5. Add a 404 page, a privacy page, and a favicon
These three are small, and visitors notice when they’re missing. A broken link that lands on a blank error screen feels abandoned. A site with a signup form and no privacy page feels sketchy. A browser tab with a generic icon looks unfinished.


How to make a 404 page
A 404 page is what visitors see when a link is broken or mistyped. Yours should say the page wasn’t found, sound like you, and give people a clear way back to the homepage. Many hosts look for a file named 404.html at the top of your site folder, but the setting varies by host, so confirm it with yours after you upload.
Do you need a privacy page?
If your site collects anything, yes. That includes signup forms, contact forms, and analytics. Google’s own Analytics terms say sites using it “must post a Privacy Policy” that gives notice of cookies and “must disclose the use of Google Analytics, and how it collects and processes data.” Even a site that collects nothing is better off with a short page saying so.
The prompt below drafts one from a list of what your site uses. It’s a starting draft written in readable language, not legal advice. If you run a business that handles sensitive information, have someone qualified look at it.
How to add a favicon
A favicon is the small icon in the browser tab and next to your site in Google results. Google’s favicon guidelines ask for a square image, recommend one larger than 48x48 pixels, list the file types it accepts (PNG and ICO are on the list, SVG isn’t), and need a link to it in the head (the hidden top section) of your homepage. A simple letter or your logo mark works.
Your research first
Before the prompt, make a list of what your site uses. Claude can’t know what your site tracks or collects.
- Analytics, like Google Analytics, even if you plan to add it later
- Forms that collect names or emails, and which company stores them
- Embedded content from other sites, like YouTube videos or a booking tool
- An email address people can write to with privacy questions
The prompt
What to check
- Visit a page that doesn’t exist. After you upload in Part 3 of this series, type your web address plus
/nothing-hereand make sure your 404 page shows up. Until then, open404.htmldirectly to check the look. - The privacy page matches reality. Every item on your list should be on the page, and nothing that isn’t on your list should be.
- The favicon shows in the tab. Open your homepage and look at the browser tab. Some browsers hold on to an old icon for a while, so try a private window if you don’t see it.
- There’s a PNG version too. Look for a .png favicon file, at least 48 pixels square, next to the SVG. That’s the one Google can show in search results.
- The footer link works on every page.
If it needs another round
If the privacy page reads like a wall of legal text, ask for a shorter version with headings like “What I collect,” “Why,” and “How to reach me.” If the favicon is blurry or cut off, ask Claude to make a simpler version, like one bold letter on your main color. Small icons need simple shapes. The prompt asks for two versions. The SVG, a kind of image file written as code, stays sharp in the browser tab. The PNG is for Google, which doesn’t show SVG favicons in search results. If Claude couldn’t make the PNG, a free favicon generator site can convert the SVG for you.
Checkpoint. Your site has every page on your list, a working 404 page, a privacy page, and a favicon. It’s a complete site sitting in a folder on your computer.
What you have now
You have a working website. It isn’t online yet, and that’s fine. You built it from a plan you wrote, in a design you approved, with every page checked at least once. If it took you three rounds on the homepage and one on everything else, that’s how it usually goes.
In Part 3, Put it online, you’ll pick a domain and a host, upload your files, turn on HTTPS, and run launch checks before you share the link. After that, Part 4 covers getting the site onto Google.
Questions you may have
Can Claude build a whole website in one prompt?
It can produce one, and you’ll spend the next several rounds fixing it. Building the homepage first and then one page at a time gives you fewer surprises and a site that matches from page to page.
Do I need Claude Code to build a website?
No. Cowork builds the same files. The Code tab adds a before-and-after view of each change and a built-in preview, which some people find easier to follow.
What if I want to change my colors later?
Ask Claude to change them in the shared style file and update the Design notes in CLAUDE.md. Every page that links to the shared styles picks up the change.
Which Claude model should I use?
Any current model can build a simple site. If you’re unsure which one to pick, my Claude models guide covers what each one is best at.
Sources
- Use Claude Code Desktop and Get started with the desktop app, Claude Code docs (checked November 8, 2026)
- Google Analytics Terms of Service, section 7, last updated May 15, 2023
- Define a favicon to show in search results, Google Search Central, updated October 27, 2026