|
||||
|
Contents |
|
|
||
Overview
|
| Getting Started |
Save your XHTML template file as x21h.htm, and title the page, "Sarah Strong Stylesheet Sampler" (changing Sarah Strong to your own name). Make sure your name is listed as author. |
|
|
Step 1: Put Text in your File
|
Use copy-and-paste to take the text from this module and paste it into the body of your sampler:
In the paragraph starting with the word "Moral" add a class to the <p> tag called moral. |
|
|
Step 2: Create the Stylesheet
|
Create a stylesheet in the <head> area of your page. It should contain the following styles:
|
|
|
Step 3: Use the Classes
An example of what the
page should look like in a browser is available. This is shown in Opera 7.54,
reduced to 70% in full-screen mode in order to fit the entire document on one
screen, so yours will look bigger, longer, and narrower. However, you should be
able to see the colors, sizes, alignment, and overall formatting. Link here
to view. |
Copy and paste the following text into the body of your x21h.htm file after the end of the first sample:
|
|
|
Step 4: Check and Debug
|
Check your file to make sure the styles come through as required. It will probably be necessary to debug before you put it on your Website. Submit your file to the W3C XHTML validator http://validator.w3.org/ Debug and correct as necessary. |
|
| When you're done, double-check that the assignment meets the specifications above, and that all links are functional. Upload your work to your WCC student Website, and send email to the instructor with the URI. Be sure your email meets the formal requirements: name, class, section and exercise (x21h), and that it follows standard business-email practice.
|
| |
|
|---|---|
|
Audience
|
This exercise is for people who are familiar with the principles of internal stylesheets and want to practice using them.
|
| Objectives |
On successful completion of this module, you will be able to:
|
| Module x21h: Formatting with Internal Stylesheets |
This document is part of a modular instruction
series in Computer Instruction. For more information, see the overview
or the list of modules in this series, X:"XML,
XHTML, DHTML, CSS". This document has been used in the following
classes: INP 270.
|
| History: |
Original: 17 March 2003
Last modification: Monday, 31-Aug-2009 11:48:08 EDT |
| Copyright |
Copyright © 2003, Laurence
J. Krieg, Washtenaw Community College
Instructors: You may point to this file in your Web-based materials; however, its location may change without notice. Students: You are welcome to make a copy for your personal use. All other uses: Please contact the author, Laurence J. Krieg, for permission: krieg@ieee.org. |