> ## Documentation Index
> Fetch the complete documentation index at: https://docs.aicodezero.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Build a multi-page website

> Ask for a website with several pages, then move between, edit, add and remove pages.

In the **Website studio**, a site can have a home page plus pages like About, Menu or Contact. All pages share the same look, menu and footer, and links between them work in the preview, in exports and on a published site. In the App and Game studios, ask for screens inside the app instead.

## Ask for the pages you want

AI Code Zero keeps a site to one page unless you ask for more. Name the pages in your request:

```text theme={null}
A multi-page website for a bakery with Home, Menu, Our Story and Contact pages.
```

A site can have up to 12 pages, including the home page, and the whole site must stay under 400 KB of code. If it gets too big, AI Code Zero asks you to remove or shorten a page.

## What happens while it builds

AI Code Zero writes the home page first, with a menu linking to the other pages. Then it writes each linked page, using the home page as a guide so fonts, colors, menu and footer match.

You can follow along:

* The status line names the page being written, such as **Creating about.html (2 of 4)…**.
* In the code view, each page gets its own tab as soon as it starts.
* With **Reasoning** on, a short pause between pages is normal.

Each page is a separate request to your AI provider. [Prompt caching](https://docs.aicodezero.com/costs/prompt-caching.md) makes the later pages cheaper and quicker to start.

If a page can't be written, the build still finishes, and its link doesn't open anything yet. Ask for it in the chat, for example "Add the menu page".

## Move between pages

* **Click links** on the site. The preview's back and forward buttons follow the pages you've opened.
* **Use the page picker** in the preview toolbar (**Switch page**). The home page is listed as **Home**, and `our-story.html` shows as **Our story**.

![The Ray's Ski Resort website from the Showcase in the preview at full size, with back, forward and reload buttons in the browser bar above the site](https://mintcdn.com/aicodezero/rGB923SOGbGWP664/images/screens/website-desktop.webp?fit=max\&auto=format\&n=rGB923SOGbGWP664\&q=85\&s=26b4ca7b1ba4c13f17423962fcfe85b8)

A website in the preview. The browser bar's back and forward buttons follow the pages you open.

## Edit a multi-page site

* **Name the page in your request:** "On the Menu page, add a section for gluten-free options."
* **Menu and footer changes apply everywhere.** Ask once, like "Add a Gallery link to the navigation", and every page updates.
* **Direct editing changes the page you're viewing.** Open the page first, then click or drag what you want to change. See [Edit your app](https://docs.aicodezero.com/features/editing-apps.md).
* **Broken links are fixed for you.** If an edit leaves a link pointing nowhere, the AI creates the page or fixes the link. You'll see **Fixing links between pages…**.

## Add, remove or rename pages

Ask in the chat. There are no page buttons.

* **Add:** "Add a pricing page and link to it from the navigation."
* **Remove:** "Remove the careers page and its navigation link." The home page can't be removed.
* **Rename:** "Rename the Our Story page to About."

## Export and publish

Export downloads a `.zip` with one `.html` file per page, so links keep working after you unzip it. See [Export your project](https://docs.aicodezero.com/features/exporting.md). Publishing puts every page online together. See [Publish to the web](https://docs.aicodezero.com/features/publishing.md). To bring in an existing site, see [Import a site](https://docs.aicodezero.com/features/importing-sites.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.