Beginner 12 min

Multi-Page Sites

Until now, you've been building single pages. One HTML file, one screen, one scroll. But real websites have multiple pages — a home page, an about page, a menu, a contact page. Each one is its own file, and they're all connected by links.

In this lesson, you'll build a 3-page recipe collection site and learn how pages connect to each other. It's simpler than you think — and once you understand it, you'll be able to build sites of any size.

The Recipe Site Plan

We're going to build a small recipe website for a home cook. Three pages, each with a distinct purpose:

Home

A welcoming hero section with a tagline and three featured recipe cards that draw visitors into the site.

Recipes

A full listing of six recipes with photos and short descriptions. The browsable collection.

About

A bio of the cook — their story, what inspires them in the kitchen, and how the site came to be.

This is a project anyone can personalize. Swap recipes for travel destinations, book reviews, or workout routines. The structure stays the same: a landing page, a collection page, and a personal page. Once you build it once, the pattern clicks.

Asking Claude for Multiple Files

The key to getting a multi-page site from Claude is describing all the pages in a single request. This way, Claude can make sure the navigation, styling, and structure are consistent from the start.

Your request to Claude
you: Create a recipe collection website with 3 pages: a home page with a hero section and 3 featured recipe cards, a recipes page listing 6 recipes with photos and descriptions, and an about page with a bio of the cook. Use a warm, kitchen-y color scheme — cream background, tomato red accents, dark brown text. Add a navigation bar at the top that appears on all three pages.
Claude's response
Claude: I'll create a 3-page recipe collection site with a warm kitchen aesthetic. Here's what I'm building:
Created index.html — Home page with hero and featured recipes
Created recipes.html — Full recipe listing with 6 cards
Created about.html — Cook's bio and story
All three pages share the same nav bar, color scheme (cream #FFF8F0, tomato red #E74C3C, dark brown #3E2723), and typography. The nav highlights the current page so visitors always know where they are.

Three files, created together, already wired up. Open index.html in your browser and you'll see a working site with clickable navigation between all three pages.

How Pages Connect

This is the most important concept in this lesson. When you click a link on a website, your browser opens a different file. That's all navigation is — links between files. Here's the navigation bar Claude created, shared across all three pages:

index.html
1<nav>
2 <a href="index.html">Home</a>
3 <a href="recipes.html">Recipes</a>
4 <a href="about.html">About</a>
5</nav>

Let's break down the important part. When a browser sees href="recipes.html", it means: "when clicked, open the file called recipes.html in the same folder." That's it. Links are just filenames.

Every page in your site has the same <nav> block. When you click "Recipes" on the home page, the browser opens recipes.html. Click "Home" on the recipes page, and it opens index.html. The pages don't "know about" each other in any magical way — they just point to filenames.

Folder Structure

Every multi-page site has an organized folder. Here's what your recipe site looks like on disk:

my-recipe-site/
  index.html   ← Home page (the main entry point)
  recipes.html   ← Recipes listing
  about.html   ← About the cook
  images/
    pasta.jpg
    salad.jpg
    soup.jpg

Why is the home page called index.html instead of home.html? Convention. When you visit a website, your browser automatically looks for a file called index.html in the folder. It's the default starting point — like the front door of a house. You can name it something else, but index.html is what the web expects.

The images/ folder keeps things tidy. Instead of mixing image files with HTML files, you put them in their own subfolder. To reference an image from any of your HTML pages, you'd write images/pasta.jpg — the folder name, a slash, and the filename.

Keeping Design Consistent

When Claude creates multiple pages, it repeats the same navigation bar, color scheme, and typography across all of them. But what happens when you want to make a change? If you ask Claude to tweak the nav, it might only change one file unless you tell it otherwise.

Updating all pages at once
you: Change the navigation background to a darker shade of red and make the current page's nav link bold. Apply this to all three pages.
Claude: Updated all three pages. The nav background is now #C0392B (darker tomato red) and each page bolds its own link — "Home" on index.html, "Recipes" on recipes.html, and "About" on about.html.
Updated index.html
Updated recipes.html
Updated about.html

The phrase "apply this to all three pages" is what makes this work. Without it, Claude might reasonably assume you only want to change the file you were just discussing. When you're working with multiple files, always specify the scope of your change.

Pro Tip

When you want a change applied to all pages, say so explicitly — "update the nav on all three pages" or "change the font across the entire site." Otherwise Claude might only change the file it's currently looking at. Being explicit about scope saves you from discovering inconsistencies later.

Try This

Ask Claude to create a 3-page website for something you care about. Some ideas:

  1. A fan site for a band or artist — Home, Discography, About
  2. A travel journal — Home, Destinations, About Me
  3. A pet photo gallery — Home, Gallery, Meet the Pets

Make sure to ask for navigation between all pages. Then try clicking the links in your browser to see the pages connect.

Practice: Links and File Structure

The HTML tag that creates a clickable link to another page is the <> tag.

The attribute that specifies where a link goes is called .

The default home page file that browsers look for is called .

To link to a file in the images folder, you'd write /photo.jpg.

Check Your Understanding

1. What does <a href="about.html">About</a> do?

A Displays the word "About" as a heading
B Creates a clickable link that opens about.html when clicked
C Embeds the contents of about.html into the current page

2. Why is the home page usually called index.html?

A Browsers look for it by default when opening a folder
B It's required by HTML — pages won't work without this name
C It makes the page load faster than other filenames

3. How do you make a design change appear on all pages of your site?

A Changes to one page automatically apply to all others
B You have to manually edit each file yourself
C Ask Claude to update all pages — specify "across the entire site"

Key Takeaways

Lesson 3: The Art of Back and Forth Course Home Lesson 5: CLAUDE.md