Homework 1 | CS 4, Summer 2007 | Due: July 6



Directions: Submit hardcopies (paper copies) of your solution to the written questions (W). For the HTML questions (H), submit a hardcopy of your HTML code and write on the hardcopy the URL that contains the web page (e.g., www.dartmouth.edu/~farid/cs4Q8294/hw1_q3.html and www.dartmouth.edu/~farid/cs4Q8294/hw1_q4.html). Make sure to place your name on the first page of your fully stapled homework. The point values for each question are as specified.

When writing HTML code, you may not use any software that automatically generates HTML code (e.g., MS Word). See the class web page for more details on the Honor Code. Make an effort to write neat code that is logically indented and spaced.

  1. (W: 10) Most HTML tags appear in pairs (e.g., <b> ... </b>). Give five HTML tags that do not require a closing pair. Briefly describe their function.

  2. (W: 15) You are the designer of HTML and you decide that opening and closing tags will be the same (e.g., <b> ... <b> as opposed to <b> ... <\b>). In general, can you see any problems that this may cause for any tags, and if so explain.

  3. (H: 20) Visit www.yoyodesign.org/outils/ncolor/ncolor8.html.en. Choose some background and text colors that you like and that complement each other (bright text on a dark background, or dark text on a bright background). Create a simple web page that contains a favorite quotation and that uses your choosen colors for the background and text. Your quote should be inserted into a table that is centrally aligned on the web page, and whose background is set to one color. The actual quote should be colored another color. You may set the width of the table to control how the text in the table wraps. Shown below is an example.


  4. (H: 55) Create an HTML-based resume that generates the short resume shown below. This resume will, of course, be implemented in a table. Structurally your HTML code should produce something very similar to what you see below -- match the font formatting as well as possible, but don't worry about the specific font sizes used. Take care to get the spacing and alignment correct. Notice that the web address is a link (make this link point to your home page). There is no single correct answer for this, as there are several ways to create this resume.