How to Create and Host a Website for Free

ChatGPT + GitHub Pages + a code editor · ~15 minutes · no coding experience needed

What you'll need

Steps

  1. Find a reference site. Find a website online whose design you like and copy the link.
  2. Generate the site in ChatGPT. Sign up and send the prompt (template below), substituting your link and a description of yourself.
  3. Copy the code. Press “Copy” on the code block in ChatGPT's answer.
  4. Create a repository on GitHub. Sign up at github.com → “+” → “New repository”. The name must be exactly your_login.github.io (this is the future address of your site and can't be changed). Any description, set to Public → “Create repository”.
  5. Open the code editor. On the repository page press the . (period) key, or the “Code” → “Codespaces” button — an online version of VS Code opens.
  6. Create index.html. In the file explorer press “new file”, name it exactly index.html, and paste the code from ChatGPT.
  7. Commit the changes. Source Control tab → write a message (e.g. “My first website”) → Commit.
  8. Sync. Press Sync Changes at the bottom and confirm — the code goes to GitHub.
  9. Wait 1–2 minutes and open your_login.github.io — your site is already on the internet! 🎉
  10. Improve it. Ask ChatGPT: “make the header sticky”, “add a gallery”, “change the colors to blue”. Each time ask for the whole file again and repeat steps 6–8.

Prompt for ChatGPT (template)

Create a website similar to [REFERENCE SITE LINK].

But it must be my own working page. Tell about me: [YOUR INFO — what you do, experience], my work: [services/projects], contacts: [phone, email, socials], service prices: [your list].

Requirements: everything in a single index.html file (HTML + CSS inside), mobile-friendly, modern design.
⚠️ Name the repository exactly login.github.io — lowercase, no spaces. Then the site will open at https://your_login.github.io

Pre-launch checklist