OK, congratulations on writing your first html code/page. Now, lets figure out how to get it on the Internet for others to view.
We are going to need to acquire server space, this is where we will store our files. Furthermore, this server will actually “serve” these files to requesting host-computers. In addition to acquiring a server, we will need to each get individual and unique URL’s where we can point a computer to.
GitHub.com provides free web hosting for static websites (a static site is one that does not involve server-side computational work beyond serving or delivering files to a requesting host-computer). For this course, this means we can utilize them as a our server, and they will also provide us with URLs.
GitHub assigns each user the following URL:
username.github.io
This is your baseurl, as was discussed on the previous page.
In order for our repo to be served, we need to tell GitHub that this is a “GitHub pages project site”.
/341-work
repository.index.html
file in the root directory of the repo. Instead you should see a GitHub “404 error page”.index.html
file lives in our repo. Select the URL in the address bar, and add week-03-hw/
to the end of the address. This should open up your index.html
page at an address that looks like https://yourusername.github.io/341-work/week-03-hw/
. For all most of the future pages you will write for homework, the URL will be https://yourusername.github.io/341-work/
+ the-directory
where you are placing that weeks homework assignments.