Lesson 17 / 18
Hosting a Static Site
Serve HTML/CSS/JS straight from a repo, for free.
What Pages does
GitHub Pages serves static HTML/CSS/JS straight from a repo branch (or a /docs folder) at a free *.github.io URL.
Turning it on
Settings → Pages, pick a branch (e.g. gh-pages or main) and folder, then save — GitHub builds and publishes automatically.
Custom domains
Add a CNAME file with your domain and update your DNS records to serve Pages from your own domain.