| Getting
Started |

Save your XHTML template file as x26h.htm,
and title the page, "Sarah Strong X26h" (changing Sarah Strong
to your own name). Make sure your name is listed as author.
|
|
Task 1

A screen-shot a similar assignment
for Task 1 (reduced to 50% original size) is available by clicking
this link. Your page should look like
this, except for the first three pictures and the width of the
paragraphs and headings, which will depend on the width of the
browser window. |
- In your browser, open the Aesop's Fables text file (http://courses.wccnet.edu/computer/mod/aesop_fables.txt).
Select the entire text, and paste it into the body of your x26h file.
- Mark up each of the stories as follows:
- Title: Heading 2
- Story: Paragraph
- Moral: Paragraph, emphasis
- Using the <img> tag, add the following images to the appropriate
stories, at the beginning of the first paragraph:
- fox-crow.gif: http://courses.wccnet.edu/computer/mod/fox-crow.gif
Align left, alternate "Fox and Crow, from PBS
Kids "; determine the size and enter the correct
parameters.
To
determine the size of an image, right-click
it and select Properties from the pop-up
menu. The dimensions will be given.
- sick-lion.jpg: http://courses.wccnet.edu/computer/mod/sick-lion.jpg
Align right, alternate "Sick Lion"; determine
the size and enter the correct parameters.
- donkey.gif: http://courses.wccnet.edu/computer/mod/donkey.gif
Align left, alternate text " Angry Donkey";
enter a height of 231 and a width of 100, which is
not the actual size, and results in a "squashing"
effect.
- regal-lion.jpg: http://courses.wccnet.edu/computer/mod/regal-lion.jpg
Align right, alternate text "Portrait of a Lion,
by jojobegood"; determine the size and enter
the correct parameters.
- Double-check to make sure the file meets the requirements, and validate
it as XHTML 1.o transitional.
|
| Task
2


A screen-shot of the finished assignment for
Task 2 (reduced to 50% original size) is available by clicking this
link. Your page may have any background and separator images you like, so
it may look quite different from this example. |
- In Notepad, open your home.htm file, created as part of assignment
X10i. This file should have:
Class and section numbers;
Your name;
A list of assignments, which you will link to the page as you complete
on-line assignments. Use the on-line Class Schedule to compile this
list
- Insert the WCC logo from http://courses.wccnet.edu/computer/mod/wcctile.gif
as the first thing in the body of the file. (Don't forget to include alternate
text.)
- Mark up the line with your class and section number as Heading 2.
- Mark up your name as Heading 1. Using inline CSS, center the heading
and select an image from the collection
of graphic elements (or any other source) to be a background for
the header.
To
put an image in the background of any block
entity:
- If the image is in the same directory as the XHTML file:
style="background-image: url(blumrbl.jpg);"
- If the image not in the same directory, use any relative
or absolute URL, like this:
style="background-image: url(http://courses.wccnet.edu/computer/mod/blucloud.jpg);"
- Select another background image, and use inline CSS to set it as
the background for the entire body.
- Select a separator from the collection of graphic elements or elsewhere;
insert it between the two headerings and the list of assignments, and
also at the end of the file, just before </body>.
- Double-check to make sure the file meets the requirements, and validate
it as XHTML 1.o transitional.
|
| Submitting
the Assignment

|
When you're done, double-check that the assignment meets
the specifications above, and that all links are functional.
Upload to 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 (x26h), and that
it follows standard business-email practice.
|
About This Document |
|
Audience
|
This exercise is for people who are familiar with basic XHTML and
inline CSS, who want to put images in documents
|
| Objectives |
On successful completion of this module, you will be able to:
- Use the <img> tag to include images in a Web page
- Include the alt attribute meaningfully
- Set sizes for images
- Use the CSS to place images in block entities
- Ap[ply CSS background image repeat, attachment, and position properties
|
| Module X26h: Images with CSS and XHTML |
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, etc..
This document has been used in the following classes: INP
150.
|
| History: |
Original: 14 October 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.
|