Vibe Coding Guide logoVibe Coding Guide

How to Vibe Code a Website: A Beginner's Step-by-Step Guide

You have an idea for a website. Maybe a portfolio, a small business page, or a landing page for something you sell. You have never written code. Here is the good news: you can build that website today, by describing it in plain words and letting AI write the code.

This guide shows you how to vibe code a website from nothing to a live link, in about an hour. It follows the same 7-step workflow from How to Vibe Code: Step-by-Step Guide for Beginners — but this time we apply it to one real thing: a website.

Beginner building a bakery website on a laptop with notes


Table of contents

What you need before you start

WhatWhyCost
A Lovable accountThe tool that builds the websiteFree to start
One website ideaA page with one clear jobFree
A notebookTo write down your promptsFree
About 1 hourEnough to finish, not just startYour time

No code editor, no hosting account, no card. If you have not picked a tool yet, read Best Vibe Coding Tools for Beginners first — Lovable is the one we use here.

Replit is the alternative when your website needs a database or logins, and Google AI Studio is the free way to try the idea before you commit to any tool.

Step 1: Decide what the website is for

A website with one job is easy to build. A website with five jobs is not. Before you open any tool, answer these three questions in your notebook:

  1. Who is the website for? (customers, employers, friends)
  2. What should they do on it? (call you, buy something, read your work)
  3. What is the one thing they must see first? (your best photo, your price, your headline)

Write one sentence: "This website is for ___ so they can ___." That sentence is the heart of your prompt. For example: "This website is for customers of a small bakery so they can see the menu and order a cake."

If you cannot write that sentence, you are not ready to prompt yet. Spend five minutes on it — it saves an hour of fixing later.

Step 2: Write your first prompt

A good website prompt has four parts: what the site is, who it is for, what it should look like, and what it must do. Write it in three or four short sentences about the business and the visitor, and never mention code, frameworks or file names. The AI knows the code; your job is the idea.

A good prompt for a website has four parts: what it is, who it is for, what it looks like, and what it must do. Here is a prompt you can copy and change:

"Build a one-page website for a small bakery called 'Crumb & Crust'. It is for local customers who want to see the menu and order. It should have a big headline 'Fresh bread, baked every morning', a short paragraph about the bakery, three cards showing 'Sourdough', 'Croissants' and 'Cakes' with a price under each, and a button that says 'Order today'. Warm colours — cream background, brown text, orange buttons. Make it look like a real bakery website, and make it work well on a phone."

Notice what the prompt does not say: it does not mention code, frameworks or file names. It talks about the business, the visitor and the look. That is all the AI needs.

This is prompt engineering in practice: describing a result clearly enough that the AI builds it right, instead of giving technical instructions you do not know.

Step 3: Let the AI build the first version

Paste the prompt into Lovable and wait. The first version takes a few minutes. When it appears, do not judge it yet — just look at it.

Ask yourself three questions:

  • Does the headline say what the website is about?
  • Can I see the button without scrolling?
  • Does it look like a real website, or like a sketch?

If the answer to all three is yes, you have a good first version. If something is badly wrong — the wrong colours, a missing section — say so in one sentence and let it rebuild. Do not start fixing details yet. The first version is a draft, not a finished page.

Under the surface, Lovable builds a React app — but you never need to open the code unless you want to, which is what makes it a good first tool.

Step 4: Test it like a visitor

Now click everything, the way a stranger would. Click the button. Does it do anything? Scroll to the bottom. Does anything look broken? Open the preview on your phone — most visitors will come from a phone, not a laptop.

Write down every problem in your notebook, in plain words: "The Order button does nothing." "The headline is too small on my phone." "The third card has no price." Do not fix anything yet. A list of problems is worth more than a fixed button — it tells you what to ask for next.

Step 5: Fix it one change at a time

This is the step where beginners break their websites. They send one long message with five fixes, and the AI does three of them, breaks one, and forgets the fifth.

Send one fix at a time. For example: "Make the Order button open a simple form with name, phone number and message." Wait. Test it. Then the next one: "Add prices under the three cards: Sourdough $8, Croissants $4, Cakes from $25." Wait. Test it.

Three tries is the rule: if one fix fails three times, stop and rephrase the problem. Describe what you clicked, what you expected, and what happened instead. The AI cannot see your screen — your words are its eyes.

Crumb & Crust bakery website on a laptop screen, showing sourdough and croissants, with real croissants beside the laptop

Step 6: Make it look right on a phone

Check three things on your phone: the headline fits without cutting off, the button is big enough to tap with a thumb, and the cards stack one below the other. If any of these fail, send one message — 'On a phone, make the headline smaller, the button bigger, and stack the cards' — then test on the phone.

More than half of your visitors will open your website on a phone. A website that looks good on a laptop and broken on a phone is a broken website.

Man holding a smartphone showing a bakery website with an order button


Check three things on your phone:

  1. The headline fits on the screen without cutting off.
  2. The button is big enough to tap with a thumb.
  3. The cards stack one below the other, not squeezed side by side.

If any of these fail, say: "On a phone, make the headline smaller so it fits, make the button bigger, and stack the cards one below the other." Then test again on your phone — not on your laptop, on the phone itself.

Step 7: Publish it and share the link

When the website works on your phone and the button does what it should, publish it. In Lovable, the Publish button gives you a live link in seconds.

Bolt.new hosts the site in the browser, and v0 by Vercel deploys to Vercel with one click — the tool, not you, handles the hosting.

Smiling man pointing at a laptop showing a published website with a share link


Then do the most important test of all: send the link to a friend and ask one question. For a bakery: "Would you order from this website?" For a portfolio: "Would you hire this person?" If they hesitate, ask them why — their answer is your next fix.

A published website with a small flaw beats a perfect website that nobody can see. Publish first, polish after.

A real example: a bakery website in one hour

A one-page website takes an hour from first prompt to published link: ten minutes on the purpose and prompt, ten on the first version, fifteen on testing, fifteen on fixing one thing at a time, and ten on publishing. The website is not finished after an hour — it is live, and a live website can be improved tomorrow.

Here is what the hour actually looks like, minute by minute:

MinutesWhat happens
0–10Write the one-sentence purpose and the prompt
10–20First version builds; you look at it like a visitor
20–35Test everything, write down the problems
35–50Fix one thing at a time (button, prices, phone layout)
50–60Publish, send the link to a friend, fix what they notice

The website is not finished after an hour. It is live after an hour — and a live website can be improved tomorrow, while a perfect one in your head cannot.

Mistakes beginners make with websites

  1. Building five pages at once. Start with one page. Add a second page only when the first one works.
  2. Writing a vague prompt. "Make me a website" gives you a generic page. "Build a one-page website for a bakery with a menu and an order button" gives you a bakery.
  3. Never testing the button. A button that does nothing is the most common broken thing on a vibe coded website. Click it yourself.
  4. Ignoring the phone. If it does not work on a phone, it does not work for most of your visitors.
  5. Not saving the prompt. When the website breaks, the prompt that built it is the only way back. Keep it in your notebook.

Frequently asked questions

How long does it take to vibe code a website?

A simple one-page website takes about an hour from prompt to published link. A bigger website with several pages takes a few sessions — build one page at a time.

Do I need to know HTML or CSS?

No. You describe the website in words, and the AI writes the code. Knowing a little HTML helps later, when you want to change small details yourself — but it is not needed to publish.

Which tool is best for vibe coding a website?

For a first website, Lovable — it is the most forgiving, and it publishes with one click. v0 by Vercel is best when design matters most, and Bolt.new is best for a fast prototype. The full comparison is in Best Vibe Coding Tools for Beginners.

Cursor is the next step after Lovable or v0, for the day you want to open the code and edit it yourself — it is an AI code editor, not a prompt-to-app website.

Is a vibe coded website free?

Building it is free on the free plans — Lovable gives you 5 build credits a day, Bolt.new gives you 1 million tokens a month. Publishing to a free link is included. A custom domain costs extra, and usually comes later.

Can I put my website on Google?

Yes. Once it is published, Google can find it — but it takes time, and a one-page website with no other content ranks slowly. The next step after publishing is adding more pages and posts, which is what this blog's silo plan is built for.

What if the AI builds the wrong thing?

Start a fresh chat with a clearer prompt. Describe the business and the visitor, not the technology. One clear sentence about who the website is for fixes most wrong builds.

Pick one idea, write the one-sentence purpose, and build the website today. The first one is the hardest — the second one is already easier.

Written by Samiullah Channa, Vibe Coding Guide. Published 27 November 2026. Prices checked 27 November 2026 — they change often, so check the tool's pricing page before you pay.

Comments