Element type names, for instance, are case insensitive for HTML but case sensitive
for XML (including XHTML served as XML). Font names, with the exception of the
generic font family CSS keywords, may be case sensitive on some operating systems.
General Syntax and
Nomenclature
The Ultimate CSS Reference 24
Disambiguating the Nomenclature
In order to name the various items that make up CSS syntax, let??™s consider the
example in Figure 2.1.
Figure 2.1: Sample CSS syntax
The example begins with a comment (p. 42):
/* A sample style sheet */
The comment is followed by two statements (p. 25). The first statement is an at-rule
(p. 25):
@import url(base.css);
The second statement is a rule set (p. 26):
h2 {
color: #666;
font-weight: bold;
}
The rule set consists of a selector (p. 26) (the text before the left curly brace, {) and
a declaration block (p. 28) (delimited with the curly braces, {}). The block contains
two declarations (p. 28) separated by semicolons:
color: #666;
font-weight: bold;
25 General Syntax and Nomenclature
Each declaration includes a property name and a value, separated by a colon.
Pages:
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73