1 Introduction

In this short note, we introduce how to set up a static personal web site on the Github repository so you can use this platform to post your professional information and showcase your talent.

2 Basics of HTML

HTML is a markup language that defines the structure of the content. HTML consists of a series of elements, which we can use to enclose, or wrap, different parts of the content to display it in certain ways. The enclosing tags can be used to organize the contents, embed images, create tables, and manipulate fonts (such as the size, colors, family, face, alignment, etc).

The components of an element are as follows:

2.1 Basic HTML Tags

HTML is a fairly straightforward programming language. There is a range of HTML tags that help us to design our web page. Four of the tags are required in HTML: html, title, head and body.

The anatomy of HTML tag has been illustrated earlier. A list of important tags can be found at html-tags-chart.pdf .

2.2 Anatomy of An HTML Document

That wraps up the basics of individual HTML elements, but they aren’t handy on their own. Now we’ll look at how individual elements are combined to form an entire HTML page. Let’s revisit the code we put into our index.html example (which we first met in the Dealing with files article):

<!DOCTYPE html>
<html>                                    <!-- open html tag: required  -->
  <head>                                  <!-- open page header: required -->
    <meta charset="utf-8">
    <title>My First Web Page</title>      <!-- page title appears on the tab -->
  </head>                                 <!-- close page header: required -->
  <body>       <!-- open html body: required -->
    <!-- All contents of the web page MUST be placed between <body> </body> -->
    <!-- The following img tag is an example. -->
    <img src="images/wculogo.jpeg" alt="wcu-logo" width = "100" height = "100"> 
  </body>                                <!-- close html body: required -->
</html>                                  <!-- close html tag: required -->

The above HTML code only illustrates the skeleton of a HTML document. A sample of a

2.3 Page Design Tips

HTML table is very useful to create a plain HTML page for beginners who don’t use CSS and Bootstrap in their web design. The detailed HTML table attributes can be found at HTML Table Attributes.

You can see the example of web page page using HTML table to layout the simple web page.

3 Host Your Personal Web Site on Github

Hosting on Github is relatively straightforward once you signed up an Github account. The configuration is simple.

3.1 Create A Github Account

We have already introduced the steps to create a Github account.

3.2 Create A Web Page

To create a web page, you need to follow the next few steps

Step 1: Create a folder in your local computer and give a meaningful name. In my example, I used WebOnGitRepos.

Step 2: Use a text editor to create an HTML file and save it in the folder created in Step 1 using name index.html. Please note that this mandatory!

Step 3 All files (images and other HTML documents) MUST be saved in the same root directory and sub-directory (need to provide the path to the file in the index.html).

I use a free text editor called Brackets on my Mac computer and Notepad++ on my Windows computer. You can also use R Studio to create an HTML document.

3.3 Configure Web Foler on Github

Log in your Github account and do the following:

Step 1: create a repository (folder) with a meaningful name (I used cpeng) to store the web page and related files.

Step 2: upload all files and folders from your local folder WebOnGitRepos that you created earlier to the repository you just created. See the following screenshot.


Step 3: click settings –> click pages –> click none and select main and click save.


Step 4: The URL of the web site is https://pengdsci.github.io/cpeng/. See the following screenshot.