1/24/06 Notes

To Notes

Summary for HCI 201 -- 1/24/06

 

Review Questions

  1. Explain the difference between these types of folders?
    current, child, parent, home.
    Ans: The current folder is the folder containing the webpage for which you are writing HTML code. If you want to write a hyperlink to another folder in the current folder, you don't need to specify a folder, just list the file to where you wish to jump.

    A child folder is a folder contained in the current folder.

    The parent folder is the folder that contains the current folder.

    The home folder is the default folder where arrive when starting SSH. The home folder contains the public_html folder.

  2. What is the symbol in an HTML hyperlink for the parent folder?
    Ans: ..

  3. How do you set the background color in the HTML code?
    Ans: If you want to set the background color of the body to beige:
    <body bgcolor="beige">

 

Using Colors on a Web Page

 

Representing Colors in Hex

 

Using Colors in Your Web Pages

 

Creating a Table in FrontPage

 

Adding Images to a Web Page

 

Using MS Paint to Resize an Image

 

Using MS Paint to Crop an Image

 

Adding Layers to a Webpage

  1. A layer is a region on a webpage that can contain any desired content, including images, text or tables.

  2. A layer can be positioned anywhere on a webpage.

  3. Layers are a convenient way to achieve precise positioning of webpage content.

  4. Warning: Do not place layers inside table cells.

  5. To add a layer to a webpage: select the main menu item Insert >> Layer.

  6. To reposition a layer: click in the layer. Then left click in the title tab and drag the layer to desired position.

  7. To resize a layer: click in the layer. Then left click in the title tab and move one of the resizing handles.

  8. To set layer properties: click in the layer. Then left click in the layer and select Layer Properties. Select Borders and Shading or Positioning.

  9. To place an image in a layer: click in the layer. Position the cursor where you wish to insert the image. Then insert the image as you did in a table cell.

 

Tables vs. Layers

  1. Creating a table is less work that positioning multiple layers.

  2. A layer can be positioned anywhere on a webpage; content in tables must be placed in cells.

  3. Layers are more modern than tables for controlling content placement.

  4. Layers can be placed on top of each other. A layer with a higher Z-Order lies on top of a layer with a lower one.

  5. Here are five examples of how to set up a web page using tables and/or layers:

    1. Variable Width Table.

    2. Fixed Width Table.

    3. Links Only on Layer.

    4. Links, Table on Layers.

    5. Layers Only.

  6. Here is the stylesheet for the preceding examples.