Module 4 · Web Development for Beginners
Publish Your First Website
Put your personal website online for free with GitHub Pages, so anyone can open it at a real web address.
About 30 minutes
What you're building
By the end of this module you'll have a live personal website at an address like https://your-username.github.io. You can put it on your CV, LinkedIn and portfolio.
Before you start, your my-website folder should contain:
my-website/
index.html
style.css
script.js
me.jpgCheck the content
A good first personal site has:
- Header: your name and one line on what you do.
- About: two or three sentences.
- Projects: two or three cards, each with a title, a sentence and a link.
- Contact: email, LinkedIn and GitHub links.
Keep file names lowercase with no spaces (me.jpg, not My Photo.JPG). Web servers treat Me.jpg and me.jpg as different files.
Publish with GitHub Pages
You need a free GitHub account (see the Git & GitHub course).
- On GitHub, create a new public repository named exactly
your-username.github.io, replacingyour-usernamewith your GitHub username. - Click uploading an existing file (or Add file → Upload files), drag in everything from your
my-websitefolder, and commit. - Go to Settings → Pages. Under Build and deployment, set Source to Deploy from a branch, choose main and / (root), and save.
- Wait a minute or two, then open
https://your-username.github.io.
Your site is live. Every time you commit a change, it updates within a few minutes.
Other free options
- Netlify (netlify.com): drag your folder onto the page to publish.
- Vercel (vercel.com): connects to GitHub and publishes on every push.
Check before you share
- Open the site on your phone.
- Click every link and check every image loads (broken images are usually a file name mismatch).
- Right-click → Inspect → Console to check for red errors.
Try it
- Finish your four sections: header, about, projects and contact.
- Publish the site with GitHub Pages.
- Test it on your phone and fix anything broken.
- Add the link to your LinkedIn, CV and portfolio page.
Earn your badge
Take the module check
Five quick questions about this module. Pass and you earn the First Website badge, free.
Create a free account to earn the badge