Ms. Anderson's Web Class

Friday, February 03, 2006

Hurricane project finished

Today in class: Students completed the CSS Hurricane Project, where they converted HTML formatting into CSS. Students were asked to turn in the CSS document and the HTML document during class however, if the project was not finished it is homework for the weekend and due at the beginning of class Monday.


Re-Teach: Classes and ID's (information taken from Designing CSS Web Pages by Christopher Schmitt)

Example of a class in CSS
Definition: style that can be applied for elements that make use of the class attribute

Syntax: a.class or .class

CSS Code: .grey {background-color: #666666}

HTML Code:


Explanation: the grey background is only applied to the second paragraph since the tag is calling the class grey.

Example of an ID in CSS
Definition: Applies a style to any element that make use of the ID attribute

Syntax: a#ID or #ID

CSS Code: #grey {background-color: #666666}

HTML Code:

Explanation: the grey background is only applied to the second paragraph since the tag is calling the ID grey.