Skip to content

Instantly share code, notes, and snippets.

@JohnPhamous
Last active August 14, 2020 17:54
Show Gist options
  • Save JohnPhamous/9adcdbf97df4081ab5bb58e41014bbdf to your computer and use it in GitHub Desktop.
Save JohnPhamous/9adcdbf97df4081ab5bb58e41014bbdf to your computer and use it in GitHub Desktop.

Create a repository

Create a new repository named username.github.com, where username is your GitHub username.

Screenshot of the create a new repository page

Creating your first index.html

On the repository page, click the creating a new file link.

Screenshot of the repository page with a rectangle around the creating a new file link Name your file index.html. Now copy and paste the following code into the file.

<html>

<body>
  <h1>YOUR NAME</h1>
  <p>Welcome to my website!</p>
  <img src="https://media1.giphy.com/media/KasZzipEr3khqtCAIv/giphy.gif" />
</body>

</html>

You can customize the text that says YOUR NAME and Welcome to my website!.

Screenshot of the create index.html page after everything is filled out Press the Commit new file button.

Viewing your website

Your website is now accessible at https://username.github.io!

An animated gif of the website you created

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment