Publish your first website for free with GitHub Pages
Time 15 min
Level Intermediate
Updated
GitHub Pages hosts static sites (HTML, CSS, JavaScript) for free. Ideal for a portfolio or a landing page.
Create the repository
On github.com, click New repository. Name it
yourname.github.ioand choose Public.Add the home page
Click Add file › Create new file, name it
index.htmland paste:<!doctype html> <html lang="en"> <head><meta charset="utf-8"><title>My site</title></head> <body><h1>Hello!</h1></body> </html>
html