Build a Site from Zero with Cursor
Want your own site but can't read code? AI editors like Cursor let you build pages by chat — and fix bugs without begging a developer.
Why Cursor
Classic site-building needs HTML/CSS/deploy. Cursor embeds AI in the editor: describe, it writes, and explains as it goes.
Setup
- Download Cursor from the official site and sign in
- The default Claude or ChatGPT model is fine
- Drop in your project files
Step 1: generate by chat
In chat, type: 'A single-page personal resume site, light theme, avatar and contact section, self-contained HTML.' It generates files.
Tip: add one feature at a time, preview in browser, then request the next.
Debug & iterate
- Paste the red error message into it
- So you can adjust it yourself later
- Keep a git copy so you can diff when it breaks
Ship it
Once local works, push to free static hosts like Cloudflare Pages or GitHub Pages and bind your domain.
Who it's for
Resumes, portfolios and small landing pages fit well; complex backends still need pros.
A prompt that actually works
Build a one-page personal portfolio site with these requirements:
- Light modern style with a blue-to-purple gradient
- Top navigation (home / about / contact)
- Avatar block, short bio and contact details
- Responsive, and it must look good on phones
- A single self-contained HTML file with inline CSS
The last line matters: ask for a single self-contained HTML file so you can just open it.
How to iterate well
- One feature at a time:Do not ask for ten features at once — you cannot isolate what broke.
- Preview every step:Open it in the browser as soon as it is generated, then ask for the next thing.
- Paste the error:Paste the red error message verbatim — far more effective than saying "it broke".
- Ask for explanations:Have the AI comment the key code so you can edit it yourself later.
Free deployment
Once it runs locally, push to a free static host and point your domain at it.
- Cloudflare Pages:Drag and drop and you are done, with automatic HTTPS (this is what this site uses)
- GitHub Pages:Suits projects already managed with Git
- Netlify / Vercel:Generous free tier, similar flow
See our zero-cost hosting guide for the full domain-binding walkthrough.
Beginner pitfalls
- Asking for too much at once:Build the skeleton first, then fill in the content.
- No backups:Copy the file before changing it, or keep a git version.
- Not testing mobile:Always check on a phone — plenty of AI-generated layouts break on small screens.
- Undocumented CDNs:Check the page does not depend on temporary external links, or they will break later.
Real case: a non-coder ships a site
A non-coder built a one-page portfolio with Cursor: home + avatar + bio + contact, responsive. ~40 minutes from empty file to running locally, then deployed and bound a domain — about 1 hour total.
- What worked: ask for a single self-contained HTML file to avoid dependency mess, and preview after each feature.
- Ongoing upkeep: have the AI comment the tricky parts so you can make small edits yourself later.