Due by midnight, Thursday 02 Nov 2006
Go to your www/csci100 directory. Make a folder called hw04. Inside it create 3 subfolders, pages, images, and CSS.
You should organize your files as follows:
Note: you'll be creating your index page at www/csci100/hw04/index.html, not inside the "pages" directory. You could create a skeleton of that now if you want.
In this project you will be making three CSS style sheets and one HTML page that will be rendering using each of the various style sheets. The styles you will be creating are the following:
I've put template HTML and XHTML files on the web.
Feel free to use them as starting points.
You will be creating an (X)HTML page to demonstrate your CSS files, which you will copy and only change the CSS file linked to in order to demonstrate the other CSS file. light.html will be linked to light.css and dark.html should link to dark.css. Both should include a link that contains a link to print.css with the attribute media="print".
You will need to demonstrate the following (note: "some" can be just one, and you may combine more than one requirement in an element):
It might help grading if you label the bits. :-)
Assuming you first created light.html, then you can just copy it:
cp light.html dark.html
and all you should need to change is the <link> line in the <head>
Finally, you should create a final CSS called print.css that turns all the colors back to being black text on a white background for printing. You should link it in after your light/dark css using something similar to the following line:
<link rel="stylesheet" type="text/css" href="../CSS/print.css" media="print">
Be sure that it is un-doing your colorations (I suggest using "Print Preview" for this).
Create a page in the top level hw04 directory called index.html. Have it include links to your light.html and dark.html pages as well as your name and the honor code affirmation.
Verify your pages and CSS files using the online validators:
Resolve any problems that are discovered.
Upload your hw04 folder to your CS account and verify that your pages and images can be viewed online. You will also need to electronically submit your files to me as you should have done in the last assignment.
To do that, there are 2 mechanisms you can use:
Command line tool: if you log into occs remotely, or one of the lab machines, you can just submit all the files that you uploaded.
To do so, you should perform the following commands ('#' and beyond are comments):
Web interface: go to www.cs.oberlin.edu / handin and fill out the form there with your CS username and follow the prompts.