IT581: Practicum in Web Development, Summer 2015 (Hybrid)

Lab Exercise 3: Add CSS styles to a web page

Due at the end of class session.

Get started

  1. For this lab, begin by making a copy of the official sample solution to the Lab 2 exercise page. (Save from the file menu or view the source code and copy and paste into the editor.)
    • Alert! If you save through the file menu, use Firefox and select "Web Page: HTML only" for the "save as type" option. DO NOT USE INTERNET EXPLORER - IT CHANGES THE SOURCE CODE.
    • You may change the name to something shorter if you wish. However, Do NOT use spaces in the file name.
  2. Edit the "Page author" and "Last updated" lines at the end to insert your own name and today's date.
  3. Do NOT make any other changes to the HTML or content.

Your task

  1. Your task is to add style rules to the document. The result should be approximately like the one shown in this screenshot of a finished page.
  2. The <style> section has already been provided in the <head> section. Just add the rules.
  3. You should
    • Provide styles for the body.
    • Style headings, paragraphs, and other elements where they need to differ from the body, including font-family, colors, width, margins, etc.
    • Create the indentation using left margin settings for the paragraphs.
  4. The exact appearance of the colors and fonts depends on monitor settings and other factors. You do not need to use the exact same colors, but you should demonstrate that you can specify colors for the different parts of a document, as illustrated. If you want to check some color values, you can find a color chart at http://lynda.com/value.html. (The four color values used in the sample were #ffffcc, #ff0033, #ffccaa, and teal.)
  5. As you work, save your changes and refresh the view in the browser to see the effect.

Tips

Submit the lab work using Blackboard

Comments to: dong@hood.edu
Last Modified: 07 July 2015. 13:23