CLEAN CODE AND HOSTING YOUR SITE

Now you have made some web pages that can be viewed on your computer. But there are a few extra steps that we need to take.

CLEANING UP YOUR CODE

Coding is fairly simply but you have to also make sure it is readable by other programmers. For instance, open the pages listed below and have a look at the source code. Notice anything different?
Sample Page 1 Sample Page 2

As far as the computer is concerned the pages are identical. Browsers do not take into account spaces or new lines. This would make it very hard for the coder to understand though don't you think?

Using the information provided by the W3schools HTML5 Synatx page, clean up the code from your previous pages and ensure that they are readable to other coders.

HOW TO HOST YOUR WEBSITE USING GITHUB

Explanation

  1. Go to GitHub and sign up for an account using your school e-mail account.
  2. Create a new repository called ics2o.
  3. In that repository, click on the settings button (looks like a gear), then scroll down until you find the option to automatically create a web site. Do that, and select the most basic template.
  4. GitHub should have created a special branch called gh-pages and should have created some files and folders.
  5. Select index.html and delete it. Then select "upload files" at the top left corner of the window and upload the two .html files you created previously.
  6. Scroll down and write a comment like "Uploaded web pages." then click on the "Commit" button. This is very important after making any changes - GitHub does NOT auto-save.
  7. You should now be able to see your web pages on-line. Open a new tab in your browser and enter the address:
    http://yourname.github.io/ics2o/
  8. Before you go any farther, please e-mail your teacher the link to your web page. Copy and paste the address line into an e-mail message with the subject line "ICS2O".
  9. ***WARNING*** Everything you put in this folder from now on will be available online! Make sure it only contains things you are proud of. Any misuse of this website may result in a failing grade or further discipinary action taken by the school administration.

EVALUATION

Completion only

Next assignment: Grass Spider - Tables comparing computers