About GitHub Pages

GitHub Pages is a static site hosting service that takes HTML, CSS, and JavaScript files straight from a repository on GitHub, optionally runs the files through a build process, and publishes a website.

You can host your site on GitHub’s github.io domain or your own custom domain. For more information, see Using a custom domain with GitHub Pages

Creating a repository for your site

  1. In the upper-right corner of any page, use the menu, and select New repository.
    repo-create

  2. Use the Owner drop-down menu, and select the account you want to own the repository.
    create-repository-owner

  3. Type a name for your repository and an optional description. If you’re creating a user or organization site, your repository must be named <user>.github.io or <organization>.github.io. If your user or organization name contains uppercase letters, you must lowercase the letters. create-repository-name-pages

  4. Choose a repository visibility.
    create-repository-public-private

  5. Click Create repository.
    create-repository-button

Reference