Instructions for Final, Semester 1
Recode a real Web site to meet Web standards: discountshades.com.
I have made a couple of modifications to simplify the code. You will only need to do two of the site's pages plus an external CSS style sheet.
Copy the Files to your Folder
- Navigate to RMK201\Period X\Outbox.
- Right-click on the folder "Final" and select Copy.
- Navigate into your root folder.
- Right-click in an open, white area and select Paste.
- Right-click on the new "Final" folder and select Rename.
- Rename the folder "lastname_Final" (replace lastname with your own last name.)
Recode the Site
- Take a look at the file structure.
- There is one index.html file and one order.html file at the top level of the folder. These are the pages you will recode into XHTML and CSS.
- There are many files in the images folder. You will not need to edit or move these.
- Convert the Web pages to XHTML 1.0 Strict.
10 points.- Add the DOCTYPE listed below to both pages.
- Add the <meta> tag listed below to both pages.
- Replace your open <html> tag for both pages with the <html> tag below.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
- Bring all the XHTML coding up to speed.
10 points.- The <body> tag should not have any attributes.
- No <center> tags.
- No <font> tags.
- Remove any extra unneeded tags.
- Close any tags that have not been closed.
- Close empty elements such as <img> and <meta>. <hr> stands for "horizontal rule" and is also an empty element.
- Make sure all images have alternate text (the alt attribute.)
- Double-check all your nesting!
- Style the background color, text alignment, and fonts using CSS. 25 points.
- Create a new file in Notepad.
- Save it in your "lastname_final" folderas "style.css".
- Inside the <head> element of both HTML pages, put the <link> tag below:
<link type="text/css" rel="stylesheet" href="style.css" />
- Back in "style.css", create a bunch of CSS rules. Here are a few suggestions for styling certain tags, and creating classes to pinpoint certain areas. You can add more:
Selector |
Property |
Value |
|---|---|---|
body |
background-color |
#dedebd |
font-size |
small |
|
p |
font-family |
Verdana, Arial, Helvetica, sans-serif |
h1 |
color |
#186318 |
.center |
text-align |
center |
.smalltext |
font-size |
90% |
.largetext |
font-size |
130% |
- Structure the text on the page.
25 points.- Try to match the original font colors, alignment, and sizing as much as possible using CSS. Refer to the original page designs: index.html and order.html. (To view to original code, right-click on a Web page and select "View Source.")
- For example, use CSS classes above to center or resize <p> elements.
- Hint: for the large numbers on "order.html", put the .largetext class inside the <strong> tag.
- Don't worry about the link destinations for missing pages. Leave the href attributes as they are.
- Test your XHTML pages.
20 points.- Check your XHTML code by uploading both of your pages to http://validator.w3.org.
- You should see a green banner for each that says "This Page Is Valid HTML 4.01 Strict!"
- If you do not get that result, read down to see what the errors might be.
- Start with correcting the first error and retest the page. It may clear up several "errors" when you fix one.
- Test your CSS page.
10 points.- Check your CSS code by uploading your "style.css" at W3C's CSS Validator (http://jigsaw.w3.org/css-validator/) .
- Ignore the warnings, but fix any and all errors. Then retest.
- You're good if you don't see a red error badge across the top of your results.
Turn in your Final folder.
- Right-click on your "lastname_Final" folder and select Copy.
- Navigate to RMK201\Period X\Inbox.
- Right-click on the "Final" folder and select Paste.
