Build Your First GitHub Pages Website Tutorial: A Step-by-Step Guide

Logan Jul 13, 2026

If you're a developer, you've likely heard about GitHub Pages, a static site hosting service provided by GitHub. But did you know you can also create a simple website directly on GitHub, without needing to push your code to a separate repository using GitHub Pages? This is where GitHub.io comes in - a user-friendly way to publish your website directly from your user profile or repo. Let's dive into this tutorial to learn how to create and customize your own GitHub.io website.

stunning github
stunning github

Before we start, ensure you have a GitHub account. If you don't, sign up for one at github.com. Once you're in, you're ready to create your first GitHub.io website. Let's get started!

An Apple-style layout focuses on clarity, spacing, and logical hierarchy, making your content
An Apple-style layout focuses on clarity, spacing, and logical hierarchy, making your content

Setting Up Your GitHub.io Website

Start by navigating to your GitHub user profile. You'll see a link to create a new repository. Click on it to create a new repo named after your GitHub username. For example, if your username is 'johndoe', your repository should be named 'johndoe.github.io'.

GitHub Dark Readme - Aesthetic
GitHub Dark Readme - Aesthetic

After creating the repository, it's time to initialize it with the basic files we need for a website. Create a new file named 'index.html' and paste the following basic HTML structure:

```html Your Title

Hello, world!

an image of a computer screen with headphones on it and another screenshot of the web page
an image of a computer screen with headphones on it and another screenshot of the web page

Welcome to your GitHub.io website!

```

Customizing Your Website Title

Replace 'Your Title' with the desired title for your website. This title will appear as the tab title in your visitors' browsers.

a computer screen with a pink flower on it
a computer screen with a pink flower on it

Now, click the green 'Commit new file' button at the bottom of the page. In the 'Commit changes' dialogue box, add a relevant commit message, like 'Initial commit', and click 'Commit changes' again.

Publishing Your Website

To make your GitHub.io website live, you need to set the GitHub Pages settings. Go to the 'Settings' tab in your repository and scroll down to the 'GitHub Pages' section. Select 'main' or 'master' from the dropdown menu and click 'Save'. It might take a few minutes for GitHub to process the changes.

Open Online VS CODE from GitHub
Open Online VS CODE from GitHub

Once done, you can access your GitHub.io website at https://.github.io/. Replace '' with your actual GitHub username.

Customizing Your GitHub.io Website

How to Use GitHub: Essential Tips and Tricks for Developers
How to Use GitHub: Essential Tips and Tricks for Developers
Do you use Github?
Do you use Github?
How to Host a Website for Free Using GitHub Pages
How to Host a Website for Free Using GitHub Pages
login form html css
login form html css
Cómo subir tu Web GRATIS en github #aprendecontiktok #aprendeentiktok #techtok #profesentiktok #tech
Cómo subir tu Web GRATIS en github #aprendecontiktok #aprendeentiktok #techtok #profesentiktok #tech
a woman sitting at a desk with headphones in front of a computer screen that reads build web sites in minutes
a woman sitting at a desk with headphones in front of a computer screen that reads build web sites in minutes
More in the Caption ⬇️⬇️⬇️ The website is in my bio check it out now . It’s: www.useblackbox.io/sea
More in the Caption ⬇️⬇️⬇️ The website is in my bio check it out now . It’s: www.useblackbox.io/sea
a laptop computer sitting on top of a bed with text overlaying the image
a laptop computer sitting on top of a bed with text overlaying the image
Html, Css Login Tamplates
Html, Css Login Tamplates
the github chat sheet is displayed in this screenshote screen graber
the github chat sheet is displayed in this screenshote screen graber
#git #github #versioncontrol #interviewpreparation #softwaredevelopment #devops #learningjourney #sdet #qatesting | Satya Tharun Manikanta Nalle
#git #github #versioncontrol #interviewpreparation #softwaredevelopment #devops #learningjourney #sdet #qatesting | Satya Tharun Manikanta Nalle
Animation Login Form | Html&Css.
Animation Login Form | Html&Css.
How To Make Website Using HTML CSS | Crete Full Website Step by Step Tutorial | By Coding Mamun
How To Make Website Using HTML CSS | Crete Full Website Step by Step Tutorial | By Coding Mamun
an image of a computer screen with the text hackr login form
an image of a computer screen with the text hackr login form
How To Create A Website using HTML & CSS | Step-by-Step Tutorial
How To Create A Website using HTML & CSS | Step-by-Step Tutorial
Making a Project Using GitHub
Making a Project Using GitHub
GitHub Tutorial
GitHub Tutorial
click on the pin 💋
click on the pin 💋
Site web for pixel :b
Site web for pixel :b
the gif versus github diagram
the gif versus github diagram

Now that your website is live, let's add some more content. You can edit 'index.html' directly on GitHub, or use a Markdown (.md) file to create a more structured content. Let's create a new MD file named 'hello.md' with the following content:

```markdown # Welcome to My GitHub.io Website This is my GitHub.io website, created directly from my GitHub repository! ```

Once you've created the 'hello.md' file, you need to let GitHub know that this file represents a website page. Go to the 'Settings' tab, scroll down to 'GitHub Pages', and in the 'Source' dropdown, select the 'hello.md' file. Click 'Save'.

Now, open your website in your browser, and you should see a link to your new page, 'hello'. Clicking it will display the content from 'hello.md'.

Adding More Pages and Navigation

Create more Markdown files like 'about.md' or 'contact.md' and add their links to 'index.html' using HTML anchor tags. For instance, add the following navigation links to your 'index.html' file:

```html

```

Remember to replace the file extensions with '.html' instead of '.md' when adding links.

Now, your GitHub.io website has multiple pages with a simple navigation menu. Happy creating!

Exploring More Customization Options

GitHub.io supports custom domains, themes, and even JavaScript. You can explore these features by checking out the official GitHub Pages documentation. However, remember that complex customizations might require a better understanding of HTML, CSS, and JavaScript.

Your GitHub.io website is now live and ready to showcase your projects, share your stories, or simply experiment with web development. Keep adding content, exploring customization options, and making it truly yours. Happy coding!