2/14/06 Notes

To Notes

Summary for HCI 201 -- 2/14/06

 

Review Questions

  1. Why shouldn't your website contain any page named index.htm?
    Ans: Because index.htm is the default file which is displayed if the URL in the browser is the folder containing index.htm. (Many web designers consider this to be an advantage.) The problem is when there is an error. If there is no index.htm file, the file index is displayed to allow the instructor or grader to determine what is wrong. This is not possible when there is an index.htm file.

  2. What is the difference between an external style and a document-level style?
    Ans: An external file sheet can be attached to all pages in the website by using a <link> tag. A document-level style is inserted into the header of an HTML page and only affects that page.

  3. Identify the parts of this style:
    h1 { font-family : Georgia ; font-weight : bold; }
    Ans: h1 is the selector or tag, font-family and font-weight are the properties, Georgia and bold are the values.

  4. What is the HTML code for a link to an external style? Ans:
    <link rel="stylesheet" type="text/css" href="stylesheet.css" />

  5. Where is a document-level style placed?
    Ans: In the head of the HTML page like this:
    <style>
    <!--
    ... styles to here ...
    -->
    </style>

  6. Suppose that the font is set three times: in the document-level style, in the external style, and in the tag itself. Which font is actually used?
    Ans: The font in the tag itself. A font attribute has the highest precedence, followed by the specification in the document-level style, followed by the external style.

  7. Suppose that the font is set twice in the document-level style. Which font is actually used?
    Ans: The font set last is used.

 

Working with Lists in FrontPage

Creating Lists in HTML