PATH: Instructional Server> COP 1830> Projects>

COP 1830 Project 1 - XHTML Validation


Purpose:

This project is intended to give students experience in composing a simple but valid web page under the XHTML standard containing: ordinary narrative text, enhanced text, hyperlinks, graphic elements, and a colored background. The XHTML code will be written using a plain text editor to help students develop a fundamental understanding of XHTML tags and their use. The project will show that composing a web page is a multi-part process, in which you:

While content is the most important part of any web site, your content will not affect your grade. It will be based on correct, complete, and skillful use of XHTML structural tags as validated by the [W3C Markup Validation Service]. Don't put a lot of energy into your content unless you are also doing it for some outside purpose.

Project Steps:

  1. Use the web to browse the Internet and find sites, files and services of interest to you on some related topic. Note the location (URL) of each and save any small images that you want to have stored locally (on your own disk with the HTML file). If you want to use large images, then it will be best to use absolute references to them in your web page to have them read directly from an Internet server rather than storing copies of them on your own disk with your web page source code file.
  2. Either on paper or using a plain text editor such as Windows Notepad, compose a narrative about your chosen topic. Avoid using a word processor to do this because they often use non-text characters such as “smart quotes” (notice the slanted quote marks) in place of "plain quotes" (notice the straight vertical quote marks) or other specially code symbols without the user noticing.
  3. Using a plain text editor, create a web page source code file named project1.html. If you are using Notepad, you may have to place quotes around the entire filename when saving the file to prevent the addition of the extension .txt to the end of the filename.
  4. Start your file with the preamble shown below to declare the coding standards for your web page to allow the [W3C Markup Validation Service] to validate your code under strict standards. Note the XML and DOCTYPE declaration statements in the preamble below..
    <?xml version='1.0' encoding='UTF-8'?>
    <!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN'
     'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'>
    <html xmlns='http://www.w3.org/1999/xhtml' xml:lang='en' lang='en'>
    The preamble ends with an open html tag to start your XHTML source code. Don't forget to place a close html tag at the end of your file.
  5. Next create the head section of your file. Be sure to include a meta tag inside the head section that defines the character encoding your page will use. The syntax for this tag is:
    <meta http-equiv='Content-Type' content='text/html; charset= utf-8' />
    Also place a comment in the head section identifying: the filename, yourself as the author, and noting the date. Remember that XHTML comment tags look like this:
    <!-- Comment here -->
  6. Below the close head tag (but above the close html tag), create a body section to hold the text narrative text that you wrote in Step 2. Begin the body with an open body tag that contains an appropriate style attribute and color number argument to define a background color for the rendered web page. For example
    <body style='background-color:#deffff; color:inherit;'>
    Don't forget to put a close body tag after your text (above the close html tag).
  7. Next, insert the narrative text from Step 2 into the body container and "markup" the text with appropriate tags to define its layout and enhancement. For help, look in your textbook or in the [HTML/XHTML Tag Index] from [W3SCHOOLS.COM] or other online references.
  8. Use the [W3C Markup Validation Service] to validate your code under strict standards as identified by the DOCTYPE tag placed in the preamble at the beginning of your HTML file.

Tips:

Submission:

Your web page (and any associated image files) should be submitted via the Project 1 drop box under the Lessons tab on the . If your project consists of more than one file (perhaps the XHTML source code and one or more picture files), then you should copy them into an empty folder named "project1" (without spaces) and then copy that folder into a compressed folder with the same name, but with a ".zip" extension.

Then, login to the and use the Project 1 drop box under the Lessons tab to attach your file (or compressed folder). If you need step-by-step directions, read the web page at:

     http://www.gibsonr.com/classes/howto/onlinesubm.html

PATH: Instructional Server> COP 1830> Projects>