Assignment 2 Grading

The total assignment was worth 24 points.
Here are some grading details:
Part A - Problems
The three problems that you e-mailed to Dan were worth 12 points.
Here are solutions to the problems:
Problem 1 (3 points)
Three significant changes that you will have to make in order to modify the HTML code presented in the text so that it is valid XHTML are:
  1. tags must be lowercase
  2. each tag must have an ending tag
  3. tags must be properly nested
Although you were not required to mention the following, you may have noticed that in XHTML there are also several additional lines of code included in the beginning of the file:
  • XML Directive
  • Document Type Definition (or DTD)
  • xmlns attribute and associated value included in the beginning <html> tag
Problem 2 (4 points)
  1. (1 point) Substituting your username where you see userid below, the complete Web address of your homepage is:
    http://pubpages.unh.edu/~userid/index.html
    This is the complete (long version) URL of your homepage.
    Note that the following also serves as the Web address of your homepage: http://pubpages.unh.edu/~userid
    The server supplies the default name of index.html so this is the abbreviated (short version) URL you can use to access your homepage. However, I asked that you specify the complete version...
  2. (1 point) Breaking this down into the How://Where/What format
    • How --> http
    • Where --> pubpages.unh.edu
    • What --> ~userid/index.html.
      Note: The public_html directory is not mentioned in the url; the server expects to find a sub-directory (or folder) in your home directory named public_html and then looks there for index.html.
  3. (1 point) It is important to have a meaningful title for your homepage because:
    • the title is used by search engines as a description of your page in their database
    • the title is also used as a description by bookmarks (or favorites) when bookmarking the page
  4. (.5 points) The tags used to create the title for your homepage are:
    <title>Title goes here...</title>
    Note: Recall that the title goes in the head of the document so the above line of code is surrounded by the <head> and </head> tags.
  5. (.5 points) The tags used to create a heading for your homepage can be one of several; some good choices would be either:
    <h1>Webpage Heading goes here...</h1> or
    <h2>Webpage Heading goes here...</h2> or
    <h3>Webpage Heading goes here...</h3>
    Note: All of the above code goes in the body of the document so the above lines of code will appear somewhere between the the <body> and </body> tags.
Problem 3 (5 points - .5 points each for the color examples, .5 points for the body tag specification, and 2 points for the description of the RGB color model)
  • The RGB color model is a way to represent different colors by combining varying amounts of the colors red, green, and blue. The amount of each color varies from 0 to 255 which is represented by its hexadecimal value 00 through FF. The actual representation of a color starts with a # sign followed by the hex value for the red component of the color, then the hex value for green component, and finally the hex value for the blue component.
    This is the short version of the acceptable answer; what follows is a longer answer :-)
    The RGB color model is a way to represent over 16 million different colors by combining varying amounts of the colors red, green, and blue. The amount of each color ranges from 0% to 100% and is indicated as a decimal number ranging from 0 (0%) to 255 (100%). When a color is specified using the RGB color model, hexadecimal notation is used instead of decimal notation for the numbers 0 through 255. This means that the hex numbers 00 (0 or 0%) through FF (255 or 100%) are used to represent the amount of each of the three color components. The first hex number represents the amount of red, the second represents the amount of green, and the third represents the amount of blue. The three pairs of hex values are preceeded by a # sign.
  • Here is a body tag that specifies a background color of white (you could have chosen any color you wanted):
    <body style = "background-color: #FFFFFF;">
  • Here are four more different colors represented using the RGB color model (you can choose any colors you would like):
    • Blue - #0000FF
    • Orange (or gold) - #FF9900
    • Purple (or violet) - #993399
    • Green (or lime) - #33FF66
    • Yellow - #FFFF00
Part B - Homepage
The Web page was worth 12 points. The point breakdown is as follows:
Coding - 4 points total:
  1. Proper use of XHTML tags and syntax that results in your page validating when submitted to the W3C validator. If your page does not validate, you lost 4 points. If you omitted the clickable logo, we deducted 2 points and submitted your url to the W3C validator at validator.w3.org. If your page did not validate after that, you lost the remaining 2 points.
Homepage Content (index.html) - 8 points total:
  1. Heading and title that includes CS403, Section number, and your name (both first and last) -- 1 point
  2. Use of the six heading tags -- 1 point
  3. Mailto hyperlink with correct syntax -- 1 point
  4. Time and date stamp on page -- 1 point
  5. Biography:
    1. Biography information -- 1 point
    2. Paragraph tags (there should be at least 2 paragraphs) -- 1 point
  6. Comment tag -- 1 point
  7. Hyperlinks (that work!):
    1. Hyperlink to class CS403 page -- .5 points
    2. Hyperlink to a site that you like -- .5 points
Here are some observations about the assignment:

Any problem with this assignment? E-mail Danni (dpl25@cisunix.unh.edu) with questions about the Web page grading, e-mail Dan (der29@cisunix.unh.edu) with questions about the problems that you emailed to him.
© McGraw-Hill 2008. All rights reserved.

This presentation accompanies the book "In-line/On-line: Fundamentals of the Internet and World Wide Web" (ISBN 0-072-90685-5) written by Raymond Greenlaw and Ellen Hepp.