IT581: Practicum in Web Development, Summer 2015 (Hybrid)

Publishing Web documents

Due 11:59pm on July 20. You are strongly encouraged to finish this exercise. No class time will be given on Monday, Q & A only.

BACKGROUND

About Servers

For this class

Note on file names

ACTIVITY 1: GET SET UP

A. Get connected

Your tasks

  1. Start the SSH Secure File Transfer client. (Look under the Start Menu Programs listing.)
  2. Click the "Quick Connect" button.
  3. Type in "wyrd.hood.edu" and YOUR username
  4. Enter your password.

What you should see

What might go wrong:

B. Make a place for your Web Files

Notes:

Your tasks :

  1. click on the "new folder" button on the right side of the toolbar.
  2. Give the newly created folder the name public_html.
  3. Be sure to use all caps - the name is case sensitive
  4. You should see the public_html folder on the right hand side of the split window
  5. double-click on it to see the contents. (There won't be any at first).

C. Look at your Web Site

Your tasks

  1. Do not close the SSH window, keep it open.
  2. Open your web browser (Firefox)
  3. Enter the URL http://wyrd.hood.edu/~your_user_name
    1. The tilde (~) is on the upper left of the keyboard.
    2. Replace "your_user_name" with your own assigned username.
  4. Keep the browser window open, do not close it

The result

ACTIVITY 2: PUBLISH A DOCUMENT ON YOUR SITE

A. Upload your lab 06 HTML file

Copying a file to the server is called uploading.

  1. Switch back to the SSH window
  2. Browse through the folders in the left window until you find where you saved the HTML document that you created in lab 06 (the one with the lists)
  3. Then drag and drop the file from the left window to the right window.
  4. Be sure you copy it into the public_html directory.
  5. Keep the SSH window open, do not close it

B. Look at your web site

  1. Switch back to the browser window
  2. Refresh the browser (Click the swirling arrows on the navigation toolbar.) - you should see your file listed.
  3. If you do not see your file, you probably did not copy it into the public_html directory.
    1. Try again.
    2. Be sure you copy it into the public_html directory.
  4. Click on your file's name to view the page.
  5. Look in the location box on the navigation toolbar. The URL of your web document should be

    http://wyrd.hood.edu/~your_user_name/your_document_name

  6. Click the browser's back button to go back to the directory index

C. Upload related files

Observation

Your tasks

  1. upload the stylesheet file the same way you did the HTML document (switch back to SSH)
  2. refresh the browser - you should now see botht he HTML file and the CSS file in the listing
  3. Click on your file's name to view the page - it should now be using the styles

What can go wrong

ACTIVITY 3: HIDE THE DIRECTORY LISTING

The index.html file name

Your tasks

  1. Be sure your site directory listing is showing in the browser window.
  2. Create a short HTML document (Start with this basic blank page, and you won't have much to type.).
    • It should, of course, have a title and heading.
    • It should link the same stylesheet as the lab 06 that you uploaded.
    • It should have one paragraph that says: "This is my site index page. It doesn't say much at this point."
  3. Save it with the name "index.html"
  4. Upload it into your public_html directory
  5. Refresh the browser that shows your site

What you should see

What can go wrong

ACTIVITY 4: CREATE A MULTI-PAGE SITE

Background

Your tasks :

  1. Edit your index.html file.
  2. Add a paragraph that says "See my other page."
  3. Make the line of text into a link to the your lab 06 page--use a relative URL with the href value just the file name.
  4. Upload the revised index file.
  5. Refresh the browser and test to be sure the link works.
  6. If you make additional changes to your index page, be sure to upload the file again. Your changes are only saved locally, not on the server.

ACTIVITY 5: ADD AN IMAGE TO YOUR INDEX PAGE

  1. First Computer MouseHere is an image of the first computer mouse (1968), in the hand of its invertor, Doug Englebart.
  2. SAVE a copy of the image (right click and choose "Save Image as".)
  3. UPLOAD a copy of the image to you public_html directory on wyrd.
  4. ADD an image tag to your index page so the mouse picture is displayed.
    1. Use a relative url (just the file name);
    2. do not use the full URL to my copy of the image.
    3. Use an inline style rule to specify the dimensions.

ACTIVITY 6: DISCONNECT SSH

  1. When you're finished, always disconnect from the server.
  2. Choose Disconnect from the File menu.
  3. If you haven't finished the other activities, come back later to complete them.

ACTIVITY 7: SUBMIT YOUR PAGE

When your exercise page is complete,

Submit the complete URL of your index page through the Blackboard.

Guidelines

Comments to: dong@hood.edu
Last Modified: 14 July 2015. 13:06