Introduction

With this assignment, you will set up the basic structure of a styled web site, and start investigating some of the basic features of CSS.

Description

You will always use linked style sheets for your web pages in this course. So create a development directory for this assignment at “My Documents/Assignment 4” with a subdirectory for your style sheets named “css” uder that. Also, create another subdirectory named “images” under the development directory too.

Copy your image files from Assignment 2 (the one with the images and table) into the images subdirectory, and copy your main web page from Assignment 2 into “Assignment 4/index.php”. Adjust the img tags in the web page to refer properly to the actual image files if necessary. Validate and test your assignment on the server to make sure everything works correctly.

Use Vim or Dreamweaver to create a new stylesheet named “css/style-all.css” and put the following rule in it:

CSS rule
html { background-color: red; }

Put a link to your stylesheet in the head of your index.php document:

XHTML code
<link rel="stylesheet" type="text/css" media="all" href="css/style-all.css" />

Be sure your page now shows up with a red background.

From now on, you are to put a second link at the bottom of each of your web pages to get your style information validated. The URL of the W3C CSS Validator is:

URL to CSS Validator
http://jigsaw.w3.org/css-validator/check/referer

Test this link and make sure the page passes the CSS Validation. But look carefully at the validations results and you will see a warning. What is that warning, and why should you pay attention to it?

Finally, it's time for you to be creative. Your assignment is to make your page look “nice.” Here are the guidelines for what you must do. As long as you include the features listed here, you can do anything you want. Just make sure all styling is done by editing your style sheet and that your styling effects all pass the W3C CSS validation with no warnings or errors.

Submission

Due Date: November 15

When you finish coding and testing your web page, send an me an email message: