After the assignment the student should:
Background: The purpose of the assignment is to illustrate the issues concerned with the separation of content and style and to understand what you can do with a style-sheet language such as CSS. To this end the students explore CSS in some detail. The student is not required to learn syntactic details of CSS but should be able to look these up in the appropriate documentation.
jedit
or emacs
, three different CSS style
sheets, namely:
Professionalthat renders a HTML file in a business-like style. Choose appropriate fonts (e.g. Helvetica), colors, etc. The style sheet is meant to be used for screen display.
Creativewhich constitutes a creative product of your imagination. Be bold and try out colors, font families, etc. that you haven't tried before. The style sheet is intended for screen display.
.css
files.
head
element of the HTML
file. The Professionalstyle is the main style sheet for screen display; the
Creativestyle should be defined as an alternate. Think also of appropriate class-attribute values for the elements in the HTML file. Such classes represent semantic markup of your answers to the lab questions (e.g. a paragraph of class "Note", a list item of type "Answer") that provide the hooks for defining custom-tailored styles.
Creativestyle (use comments in the CSS file to help locating these). Also, include a sample use of these style definitions in the HTML file.
Professionaland
Check the Blackboard site of the course for submission details.
This list is just indicative. You don't have to use all these style properties (although we would expect to see you use a significant number). You are of course free to use also other style attributes of the CSS 2.1 specification. For a list of style properties please consult http://www.w3.org/TR/CSS21/propidx.html.
Margins |
margin-top ,
margin-bottom ,
margin-left ,
margin-right ,
margin (shorthand notation)
|
Background |
background-color ,
background-image ,
background-repeat ,
background (shorthand notation)
|
Border |
border-color ,
border-style ,
border-spacing ,
border-width ,
border (shorthand notation)
|
Text |
text-align ,
text-decoration ,
text-indent ,
text-transform
|
Foreground color |
color
|
Fonts | font-size (absolute/relative),
font-weight ,
font-style ,
font-variant ,
font-family ,
font (shorthand notation)
|
Lists |
list-style-type ,
list-style-position ,
list-style-image ,
list-style (shorthand notation)
|
Properties for paged media |
page-break-before ,
page-break-after ,
orphans ,
widows
|
Other |
caption-side (in tables),
float (e.g. for images),
vertical-align
|
Link pseudo-classes |
:link
:visited
:hover ,
:active ,
:focus ,
|
NOTE:
prior to the text entered by the author
of the HTML document (so: "Note: " is not present in
the text of the HTML document).