Steps for Hosting a Website on GitHub

  1. Create a GitHub account on github.com.
  2. Create a new repository in your GitHub application. Name it your-username.github.io. The name is very important.
  3. Make a new file called  "index.html", and it must exist in the top-level directory.
  4. Write some minimal html code in the file so that you have an index page that will be your main webpage.
  5. Enter a message down the page in the "Commit new file," something like "initial commit." Then, click the "Commit new file" button. Give it a few minutes, then check your-username.github.io. Your website should be there!