New to AI? Start here → Start 1. ChatGPT vs. Codex: what's the difference?

Last checked: November 10, 2026

Build your first web page with Codex

In one line

Build your first reading-log page with Codex
Start from an empty folder and finish by opening it in your own browser.

The big picture

Illustration (may look a little different from the real screen)

Once the file is made, here's how it looks in a browser
Click the picture to see it larger.

Follow along

First, check the install and folder

This lesson uses Codex on the desktop and an empty folder on your computer. That’s different from the Codex Cloud exercise on the web. First finish the .

See the finished example first ↗

Send your first request to create the file

1. Check that you’re in Codex and in the right folder

Choose Codex in the product menu and set the working folder to codex-practice. Don’t practice in a folder that has real work files in it.

2. Read the plan, then ask it to create the file

Paste the first prompt below. It asks for a plan only. Check that the plan works with a single index.html, then follow up with “Create the files according to this plan.”

3. Open the file in Finder or File Explorer

Open Finder on Mac or File Explorer on Windows and go to codex-practice. Double-click index.html to open it in your default browser. If an editor opens instead, right-click the file, choose Open With, and pick your browser.

If you can’t see the file, ask Codex: “Tell me the full path of the file you actually saved.” Also check that it wasn’t saved by mistake with .txt on the end.

Click around and check three things

  1. Type “AI for Beginners” as the title and click Add. A new row should appear in the list.
  2. Click Add with the box empty. If an empty book shows up in the list, it needs fixing.
  3. Check that marking as read and deleting only affect that one book.

Illustration (may look a little different from the real screen)

Try typing, checking, and deleting on the page yourself
Click the picture to see it larger.

The prompt below asks it to save in the browser. Refresh and check that the list stays, in the same browser. Saving may be limited depending on local files and your browser, and it won’t sync to other devices automatically.

If something breaks, describe what happens and how to make it happen

Instead of “It doesn’t work,” say “I typed a title and clicked Add, but nothing showed up in the list.” Include any error message you see, and ask it to fix only the related part.

After the file is changed, refresh the browser to see the changes. Also check that the address is the same file that was changed.

Today we stop at running it locally
A page you open on your own computer isn’t a website on the internet yet. Putting it online is a separate step called deploying.

Prompts you can copy

Change the parts in square brackets to fit your situation, then paste it into the real ChatGPT or Codex screen.

Plan the reading-log page

I want to make a reading-log page in this empty practice folder. Make it a single index.html file with the HTML, CSS, and JavaScript inside. I need: a box for the book title, adding books, a checkbox for read, and deleting each book. Don't add empty titles, and show the titles I type as plain text so they can't run as HTML. Save the list so it stays after a refresh in the same browser. If saving isn't possible, say so on the page. No outside APIs, outside libraries, extra installs, or putting it online. Don't create any files yet. First explain the plan and how I can check it.

Fix something that isn’t working

There's a problem in the current index.html. Steps to reproduce: [e.g. type a title → click Add] What I expected: [e.g. a new row for the book in the list] What actually happened: [e.g. nothing changed] Error message on screen: [copy it exactly, if any] Find the cause and fix only the related part. Tell me what changed, what you checked, and what you couldn't check yourself. Walk me through how to reopen the file and check it.

Where people get stuck

Lots of people get stuck here. Find the one that matches your situation!

Quick check: I opened index.html on my computer. Can other people visit it on the internet now?

Answer: “No, putting it online needs a separate deploy step”
Opening a file on your computer is different from deploying it to a server. For others to visit, it needs separate hosting and deployment.

Official sources

Next tip

How folders, files, and HTML fit together →

I'm stuck here

Stuck while following along? Tell me where. Only the site owner sees this. Leave your email only if you'd like a reply.