Lab Nine

HTML Made Easy

Preliminaries

In this lab you will:
  1. create your own home page using Netscape Composer.
  2. learn to insert picture/clip art
  3. learn to create a Windows Subdirectory.
  4. learn about how the operating system protects your data from others and how you can tell the operating system to let others view your data.
  5. use ftp to upload files
You will need your Wilkes1 user name and password

 In this lab, you are going to create your own home page using Netscape Composer. It is very similar to Microsoft Word. It is much easier than adding html tags!!!!

Lab Resource Links

HTML


To Do

1. Create a subdirectory on your diskette.

Until now, when we have been saving data on diskette, we have simply been saving the data in the root directory. Since your home page is going to consist of multiple files, it is appropriate to create a subdirectory on your diskette and put all of the files associated with this assignment in that subdirectory. It makes the uploading of the files much easier when all of the data associated with this assignment is contained in a single unit.
  • Insert your diskette.
  • Double Click on My Computer
  • Double Click on 3.5 Floppy (A:)
  • In the window for the diskette, click file, new, directory
  • Notice the folder that is created called New Folder
  • Give the new folder a meaningful name: Select it, Click file, rename then type in an appropriate name.

  •  
     

    2. Launch Netscape 7.1

    You are going to create your home page: WYSIWYG: "What you See is What You Get".

    Since entering information is so easy, this web page is expected to be elaborate. To begin entering your home page,
    Click on Window and Select Composer.Create your web page using the editing tools presented. It is similar to Microsoft Word.

    Your home page must contain the following:

    3. Setting Up Your Own Home Page on wilkes1 for the world to see.

    1. Since wilkes1 is "on the internet", by properly placing your html file in your wilkes1 account and giving the operating system the appropriate instructions that allow others access to your data, anyone on the internet will be able to view your home page.

    2.  

       

      In order to display your home page, the wilkes1 server will look for it in a directory called webdocs.

      Remember early in the semester we talked about directories? Unix has a hierarchial file system. When you log in, you are in your home directory. webdocs, will be a subdirectory of your home directory.

      So, the first thing we must do is create the webdocs directory in your wilkes1 account.

      1. Using CRT (telnet) Log on to our wilkes1 account First type in your userid and press enter.
      2. Type in your password and press enter. It will not be displayed as you type: 
      3. On the command line, type the following command:

      4.  

         
         




        mkdir webdocs


         

        It is very important that you type the command in exactly. mkdir is the unix command to create a directory. webdocs is the name of the directory to be created.

        You may get a message stating that the directory exists. That is ok. It means that it was set up for you. If you do
        not get any message, no news is new good news, the command worked.

    3. You will be instructed how to use ftp to upload the html file as well as all of the image files of the home page you just created. They must be placed in your webdocs directory of your wilkes1 account.

    4. The easiest way to do this is to use ftp through Netscape. To do this, your web page must be open in Netscape Composer (as instructed above, you did not exit.). Click on the Publish.

      First select the Settings tab. Fill in a site name, this can be anything. The publishing address is
      ftp://wilkes.edu

      The address of your homepage is
      http://wilkes.edu/~youruserid

      Fill in your user name and password

      Then select the publish tab:

      The page title will be filled in from your web page. Fill in the file name of your file. It consists of two parts: the name you selected
      .html

      The subdirectory for the page is webdocs.

      You want to include images and other files and use the same location as this page.

      Then click on the publish button.

      You can also upload your programs by Launching the ftp program and type in your userid and password. Remember, the screen is divided in two halfs: left PC side and right wilkes1 side. On the PC side, change to a:. Then change again to the name of the subdirectory you created (select, then click on change directory). On the wilkes1 side, change the directory to webdocs. Then on the PC side, select the files in the directory and click on the right arrow (xfer to wilkes1). To do them all at once, simultaneously hold the control key down while left clicking with the mouse. That lets you mark multiple files. Then click once on the right arrow.


       

      At any time, you can exit ftp. It is important to do so before leaving your computer as you leave your account open to intruders.

    5. Finally, you need to make sure that others can read your files and that others can execute programs in the webdocs subdirectory. It is the operating system's responsibility to protect your data. Therefore, unless you explicitly tell the operating system that you want others to be able to look at your home page, the operating system will prevent others from accessing your data.

    6.  

       

      Please note, in the following instructions wilkes1 > is the command prompt. The operating system is telling you to type in a command. What follows it is what you are to type on the command line.

      You are still logged into your wilkes1 account. You have created webdocs. Your current directory is your root directory.

    7. Completing these steps will have created a home page with its URL (address) as:

    8.  

       
       
       
       
       
       
       

      http://wilkes1.wilkes.edu/~youruserid/yourfilename.htm
       
       

    9. Try out your new home page using Internet Explorer or Netscape.

    10.  

       
       
       
       
       
       
       
       
       


     


    Hand In

    Email me a message containing a single line as follows

    http://wilkes1.wilkes.edu/~youruserid/

    If your home page has a name other than index.html, the file name must be included in the URL. index.html is the default. I will view each person's home page to give you a grade for the lab. Please note that if you have not followed instructions carefully, the protection provided by the operating system will prevent me from viewing your home page. If I cannot view it, you will not receive any credit for this lab, even though you have done it. I will ONLY ATTEMPT TO VIEW IT ONCE . To make sure that you can view it, attempt to view the file from one of the lab machines. To avoid a potential problem, send a friend the same URL you are sending to me and make sure the friend can view it. If your friend can view it, I should be able to.

    After I have viewed your home page, I will reply to your message to me with your grade. If you do not receive a response from me, I did not receive a message containing your URL.
     

    Remember This is meant to be a fun assignment. Please treat it as such!!! The most confusing part of this assignment is properly setting up the permissions that allow anyone on the internet to view your data. The important point that I want you to learn here is that the unix type operating system running on wilkes1 is responsible for protecting its users' data from intruders. In order for others to view your data, you must tell the operating system using commands that the operating system can understand that it is ok to allow the world to view your data. This is part of becoming literate in computer use and computer terminology.

    The commands for properly setting the permissions for others to view your file are not very intuitive. If you do anything out of order, the commands as I have dictated will not work properly. Therefore, it is important that you get this done during class so that I can help you if something goes wrong. If you are doing this on your own, you may have difficulty.

    Although the commands are not intuitive and you may feel frustrated, the concepts that we are learning through this exercise are very important. This is that the operating system is responsible for protecting your data and ensuring that your data can be viewed by others only if you authorize it. The steps that we went through are for you to tell the operating system that others can view your data. You are explicitly telling the operating system which files of yours are to be available. What if you were to do this wrong and make , for example, your saved email messages available. That could be very embarrassing if you have conducted personal conversations with others.


    Changing your home page

    To modify your page from home, you will need netscape. Simply go to Netscape.com and download netscape.

    Your home page will be on the internet as long as you have an account here at Wilkes.

    The easiest way to do this is to save your diskette. Make any changes to the home page file on your diskette using Netscape composer. You can then simply ftp the file to the webdocs directory as described above. If you did not add any image files or change the file name, then you do not have to set permissions again, they are already set.

    If you changed the file name or added any image files, the new file as well as the image files must be ftp'd to the webdocs directory. You must then log in to your wilkes1 account and type in the following two commands at the command prompt:

    cd webdocs

    chmod a+r *.*

    If you do not save the original file, you can still change your web page. You must first ftp the original file plus any image files down to your PC. The process is very similar to what is described above except you click on the left pointing arrow (you are going from wilkes1 to the PC).

    You can always use pico to modify the file right on your wilkes1 account. If you do that, you must understand the html tags.



    [CS 115 Home Page][CS 115 Lab Page]

    Maintained by Barbara Bracken
    Last Modified10/25/2003

    This webpage is copyright protected © by Barbara Bracken