A free, simple way to put your first site online.
Direct answer
To host a site on GitHub Pages, create a repository, add an index.html file, go to Settings → Pages, choose the branch to publish and save. GitHub gives you a public address. You can add a custom domain later.
Steps
- Create a GitHub account and a new public repository.
- Add
index.htmland your CSS and images. - Open Settings → Pages.
- Choose the branch (often
main) and the root folder. - Save. Wait a minute, then visit the address shown.
Minimal file
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>My first site</title>
</head>
<body>
<h1>Hello, world</h1>
</body>
</html>
Update the site
Commit changes and push. Pages rebuilds automatically.
Limits
Static files only, and public repositories for free plans. Check GitHub's current policies for size and traffic limits.
Where Teyro fits
Teyro's Build and Launch a Website course turns this into short lessons you can play in a few minutes a day. It has 100 lessons, and you can start free.
The bottom line
A great free starting point for portfolios and projects.



