How to host a website on github?

You may host static webpages straight from your GitHub repositories with GitHub Pages.
Just add your HTML, CSS, and JavaScript files to a new repository, then go into the repository settings and allow GitHub Pages.
The address of your website will be username.github.io/repository.

Go from files to website in seconds.

Start a free trial for 7 days — no credit card required

Get Started for Free