[{"data":1,"prerenderedAt":261,"buildId":262},["ShallowReactive",2],{"page-\u002Fbuild\u002Fhow-to-vibe-code-a-website":3},{"id":4,"title":5,"body":6,"description":243,"extension":244,"how_to_steps":245,"hub":232,"meta":246,"navigation":247,"path":248,"primary_keyword":249,"published_at":250,"schema_types":251,"seo":255,"status":256,"stem":257,"updated_at":258,"wave":259,"__hash__":260},"pages\u002Fbuild\u002Fhow-to-vibe-code-a-website.md","How to Vibe Code a Website: A Step-by-Step Guide",{"type":7,"value":8,"toc":234},"minimark",[9,13,18,26,29,32,36,39,42,52,61,65,83,86,112,115,121,125,136,139,162,173,177,185,198,201,205,212,218,224],[10,11,12],"p",{},"Here's how to vibe code a website: give an AI tool a short brief, open the files it creates, and check the page before you put it online.\nStart with a single page for a neighborhood event, such as a park cleanup.\nThe page is ready when a neighbor can use it to find the start time, meeting place, and what to bring without asking you for directions.",[14,15,17],"h2",{"id":16},"what-you-need-before-you-start","What you need before you start",[10,19,20,21,25],{},"Use a computer with a web browser, a plain text editor, and an AI tool that can write HTML.\nA chat tool can give you file contents to copy into your editor.\nA coding agent can write those files in a folder if you give it permission.\nEither route works for this guide.\nCreate a fresh folder called ",[22,23,24],"code",{},"park-cleanup"," and keep your other projects out of it.\nIf you use an agent, give it access to that folder only and review each request to change a file or run a command.\nYou don't need to install packages to open a plain HTML page.",[10,27,28],{},"Write down the information a visitor needs before you open the chat.\nFor a cleanup, note when it starts and ends and where to meet.\nFind out what visitors need to bring and whether the organizer has confirmed a weather plan.\nA park name may be enough for your planning notes, but a first-time visitor needs to know which gate to use.\nIf you don't know the answer, leave it out of the draft until you can ask the organizer.\nUse fictional details while you practice and mark the page as a sample if you share it.",[10,30,31],{},"You'll also need a place to upload the files if you want a public URL.\nLook for static hosting that takes a folder or archive of website files and serves them as they are.\nCheck what it makes public before uploading anything.\nYou can do the first three steps without choosing a host.",[14,33,35],{"id":34},"step-1-describe-the-site","Step 1: describe the site",[10,37,38],{},"Write the brief around the visitor's question, not a style word like \"modern.\"\nFor this example, your reader is a neighbor checking their phone on the way out the door.\nPut the date and meeting point near the top, then give the visitor a link to the list of things to bring.\nA short page with those facts is useful even without a photo or a sign-up form.",[10,40,41],{},"Use this prompt with the fictional details as written, or replace them with your own verified event information.",[43,44,50],"pre",{"className":45,"code":47,"language":48,"meta":49},[46],"language-text","Create a single public information page for a fictional Maple Park cleanup.\nLabel it as a sample event.\nUse only these details: Saturday, May 15, 2027, 9 to 11 a.m., local time.\nMeet at the east gate on Linden Street.\nBring work gloves and a water bottle.\nPut the date, time, and meeting spot just below the main heading.\nAdd a link labeled \"See what to bring\" that goes to a heading on this page.\nUse index.html for the content and styles.css for the appearance.\nUse one main heading, a section heading for the supply list, and a real list.\nLet the text wrap on narrow screens and keep a visible keyboard focus indicator.\nUse no scripts, packages, forms, or external assets.\nDo not invent extra details.\nShow or list the files you wrote and tell me how to open the page locally.\nDo not publish it.\n","text","",[22,51,47],{"__ignoreMap":49},[10,53,54,55,60],{},"The file names give you something to check when the tool replies.\nIf the answer starts with instructions to initialize an app, stop and restate the two-file limit.\nIf the draft looks too plain, finish the text and link checks before trying a different visual style.\nFor a project you can follow with a fixed example and known results, use ",[56,57,59],"a",{"href":58},"\u002Fbuild\u002Fvibe-coding-tutorial","the full tutorial",".",[14,62,64],{"id":63},"step-2-review-what-the-ai-wrote","Step 2: review what the AI wrote",[10,66,67,68,71,72,75,76,79,80,82],{},"With a chat tool, save the contents of each code block to the named file, without the lines of backticks that surround it in chat.\nWith a file-editing agent, open the files from your folder rather than assuming the summary describes them correctly.\nMake sure ",[22,69,70],{},"index.html"," and ",[22,73,74],{},"styles.css"," sit next to each other and neither name ends in ",[22,77,78],{},".txt",".\nOpen ",[22,81,70],{}," in your browser from your file manager.\nKeep the editor and the browser open so you can save a change and reload the page without losing your place.",[10,84,85],{},"Read the page as an event listing before reading the code.\nCompare the date and location with your notes, including the day of the week.\nRemove anything the tool supplied on its own, such as free parking, an organizer's phone number, or a promise that supplies will be provided.\nIf you have a confirmed rain plan, use wording that tells a visitor what to do, such as where to look for a cancellation notice.\nDon't ask the model to fill in missing real-world facts.",[10,87,88,89,92,93,96,97,100,101,104,105,108,109,111],{},"Next, walk through the HTML in the editor and point to the part that supplies each piece of the page.\nThe ",[22,90,91],{},"\u003Ctitle>"," is the text for the browser tab, and ",[22,94,95],{},"\u003Ch1>"," is the main heading visible on the page.\nFind the line with ",[22,98,99],{},"rel=\"stylesheet\""," in the ",[22,102,103],{},"head"," and check that its ",[22,106,107],{},"href"," names ",[22,110,74],{},".\nIf the tool gave you a preview but the local page looks unstyled, check that spelling and the folder location before asking it to rewrite the design.",[10,113,114],{},"In the stylesheet, find the rule that limits how wide the text can get on a large screen.\nIf you find a fixed width in pixels instead of a maximum width, check whether it forces phone readers to scroll sideways.\nAsk for an explanation of that rule and change only the width if it's the cause.",[10,116,117,118,120],{},"Follow the same rule for each edit: ask the tool to touch the smallest part that needs work.\nIf the start time is wrong, correct the text in ",[22,119,70],{}," yourself or ask for that one change.\nA request to \"fix the page\" gives the tool room to change words and layout you already checked.\nSave a copy of the working folder next to the project before a larger revision so you can go back to it.",[14,122,124],{"id":123},"step-3-check-the-html-yourself","Step 3: check the HTML yourself",[10,126,127,128,131,132,135],{},"Find the link labeled \"See what to bring\" in the source.\nIf it has ",[22,129,130],{},"href=\"#what-to-bring\"",", the supply heading needs ",[22,133,134],{},"id=\"what-to-bring\""," with the same spelling.\nClick the link and look for that fragment at the end of the address.\nCheck that the heading is the intended destination, even if the whole page fits on screen and there is nothing to scroll.\nThen reload from the top and reach the link with Tab.\nYou should see where focus is before you press Enter.",[10,137,138],{},"Run through these checks before you upload the page:",[140,141,142,153,156,159],"ul",{},[143,144,145,146,149,150,152],"li",{},"Open the browser's page inspector by right-clicking the main heading and choosing Inspect.\nCheck that the highlighted element is an ",[22,147,148],{},"h1"," and that the supply heading is an ",[22,151,14],{},", not a paragraph made bold.",[143,154,155],{},"Make the browser narrow or use its phone preview.\nRead from the main heading to the supply list and check that you never have to pan sideways to finish a line.",[143,157,158],{},"Zoom the page in and follow the link again.\nCheck that you can still read the time and meeting point without text being clipped or covered.",[143,160,161],{},"Have someone start at the top and tell you where they'd go at nine and what they'd bring.\nIf they have to read much of the page before finding the gate, move the location up and ask them to try again.",[10,163,164,165,168,169,172],{},"For a photo that shows which entrance to use, give the image an ",[22,166,167],{},"alt"," description that names the entrance and put any necessary directions in the page text too.\nIf a picture only decorates the page, use ",[22,170,171],{},"alt=\"\"",".\nThe example needs no images, so leave them out unless one answers a question the words don't answer easily.",[14,174,176],{"id":175},"step-4-ship-it","Step 4: ship it",[10,178,179,180,71,182,184],{},"Make a clean upload folder with ",[22,181,70],{},[22,183,74],{}," at its top level.\nLeave your notes and backup copies outside it.\nUse the manual upload option on a static host, following its instructions for a folder or an archive.\nIf it asks for a build command or an output folder because you chose an app template, go back and look for the option to upload finished files directly.\nThis project already has the files the browser needs.",[10,186,187,188,191,192,194,195,197],{},"When the host gives you an address, open that HTTPS URL in a private browser window.\nA ",[22,189,190],{},"file:"," address from your local preview points to your computer, so sharing it won't give a neighbor the page.\nCheck the live heading, the style, and the \"See what to bring\" link again.\nIf the host shows a missing-page error, first check that ",[22,193,70],{}," is at the top of what you uploaded rather than inside a second folder.\nIf only the stylesheet fails, compare the file name on the host with the ",[22,196,107],{},", including capitalization.",[10,199,200],{},"Open the address on a phone before sending it out.\nKeep a local copy of exactly what you uploaded and a note of when it went up.\nIf the time changes, edit your local copy, upload the revised files, and check the public URL again before you send the link around.\nAfter the event, mark the page as past or take it down so visitors don't plan around old information.",[14,202,204],{"id":203},"traps-and-how-to-avoid-them","Traps and how to avoid them",[10,206,207,211],{},[208,209,210],"strong",{},"A screenshot is your only review.","\nA screenshot can't tell you if the supply link goes anywhere or if keyboard focus is visible.\nTest the actual file and repeat the important checks on the hosted version.",[10,213,214,217],{},[208,215,216],{},"The design quietly turned into a service.","\nA form that looks finished may have nowhere to send a signup, and you don't want visitors leaving details you aren't set up to receive.\nSkip the form for this page.\nIf the organizer already has an approved signup page, link to that with a label that says where it goes and test the destination.",[10,219,220,223],{},[208,221,222],{},"The upload includes more than the public page.","\nAn address, key, or private note in a file sent to a public host doesn't become private because the page doesn't link to it.\nBefore uploading, check the contents of the folder and upload only the files the visitor needs.",[10,225,226,229,230,60],{},[208,227,228],{},"You can't get back to yesterday's version.","\nKeep the last checked copy until the replacement is working at the public address.\nIf a change breaks the page, upload that known working copy, verify it, and work on the fix locally.\nFor more guides on building and reviewing small sites, visit the ",[56,231,233],{"href":232},"\u002Fbuild","Build with AI hub",{"title":49,"searchDepth":235,"depth":235,"links":236},2,[237,238,239,240,241,242],{"id":16,"depth":235,"text":17},{"id":34,"depth":235,"text":35},{"id":63,"depth":235,"text":64},{"id":123,"depth":235,"text":124},{"id":175,"depth":235,"text":176},{"id":203,"depth":235,"text":204},"Build a real website with an AI coding agent, step by step, and understand every line it writes. Tools, prompts, checks, and common traps.","md",[34,63,123,175],{},true,"\u002Fbuild\u002Fhow-to-vibe-code-a-website","how to vibe code a website","2026-12-01T05:35:41Z",[252,253,254],"Article","BreadcrumbList","HowTo",{"title":5,"description":243},"draft","build\u002Fhow-to-vibe-code-a-website",null,"1","RtPVFPdz1a2SJDM5rQzxY-i8KOdRlQ1oh41gAVjiwD8",1796185435706,"a1d53563-3a78-4678-8315-e5bd6a5bd80c"]