Friday, July 4, 2008

CSS Terms


A CSS style sheet contains rules that describe how (X)HTML elements are presented. In the above example, the XHTML element body is the selector. There can be more than one selector.
font-family is a property and "Times New Roman" is called the value.
The part of the rule that starts with the left brace and ends with right brace is called the declaration block. The declaration starts with the property, continues with the value and ends with the semi-colon.
For XHTML documents, CSS selectors must be lower-case.

No comments: