How to build a portfolio website with AI and VS Code

You will use ChatGPT to write the HTML, CSS and JavaScript for a one-page portfolio site, then run it in your browser and swap in your own details. It suits beginners who want a working first version fast without writing code from scratch. You need a free ChatGPT account, VS Code and a browser.

YouTube video: How to Build a Website in Just 10 Minutes Using AI | No Coding

Caption availability is unknown. Check the CC control in the YouTube player.

Video length
1 min 19 s
Time to do it
20 minutes
Difficulty
Easy
Steps
10

What you need

Steps

  1. Open ChatGPT and describe the site you want: a one-page portfolio with hero, about, skills, projects and contact sections, a dark theme and a responsive layout.

  2. Ask for the full HTML, CSS and JavaScript, and tell it to label which part goes in which file so you can copy each block cleanly.

  3. Create a folder called portfolio on your computer. Inside it, make three empty files named index.html, style.css and script.js.

  4. Open VS Code, go to File then Open Folder, and select your portfolio folder so all three files show in the sidebar.

  5. Paste each block of code into its matching file and save with Ctrl+S, or Cmd+S on a Mac.

  6. Check the links in index.html: the stylesheet tag should point to style.css in the head, and the script tag to script.js just before the closing body tag.

  7. Run the site by double-clicking index.html, or install the Live Server extension, right-click the file and choose Open with Live Server for auto-refresh.

  8. Replace the placeholder content with your own name, bio, project titles, links and email, and swap any sample image URLs for your own pictures.

  9. Press F12 and turn on the device toolbar with Ctrl+Shift+M to preview phone and tablet widths and confirm the layout stacks correctly.

  10. If something looks broken, paste the faulty section or the browser console error back into ChatGPT and ask for a corrected version, then save and reload.

Tips and common mistakes

Ask for one section at a time if the reply gets cut off, so you can paste and test each part.

Save a copy of the working files before big edits so you can always go back.

Never paste passwords, API keys or private client data into an AI chat.

Test every link and button yourself, because AI code often leaves placeholder href values like a single hash.

Questions

Do I need to know how to code?

No, but you should be able to read the file names and spot where a section starts and ends. Basic HTML tags help when you need to fix small issues.

Can I put this website online for free?

Yes. Static files like these work with free hosts such as GitHub Pages, Netlify or Cloudflare Pages, usually by uploading the folder or connecting a repository.

What if the code the AI gives me does not work?

Copy the error message or describe what looks wrong and ask for a fix in the same chat. Keep the conversation going so it remembers the earlier code.

The notes are drafted automatically from video details and general task knowledge. How the guide was prepared

Report a correction

More in Apps & Software

See all