Prev | Current Page 100 | Next

Tommy Olsson and Paul O'Brien

"The Ultimate CSS Reference"

62), such as h1, or
the universal selector (p. 60), *. The universal selector can be considered to be
implied (and can therefore be omitted) if it isn??™t the only component of the simple
selector.
A simple selector can also contain class selectors (p. 63)??”for example, .warning,
ID selectors (p. 65)??”for example, #menu, attribute selectors (p. 67)??”for example,
Selector Reference
The Ultimate CSS Reference 60
[type="submit"], and pseudo-classes (p. 80)??”for example, :hover. These act like
modifiers on a type selector (or the universal selector), and qualify the selector, as
if to say ???but only if ??¦???
The CSS3 Difference
The terminology used in the CSS3 specification1 differs from that used for CSS2.
In CSS3, the term ???simple selectors??? is used to refer to the various components:
type selectors, the universal selector, attribute or ID selectors, and pseudo-classes.
The selector component that CSS2 calls a ???simple selector??? is referred to as ???a
sequence of simple selectors??? in CSS3.


Pages:
88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112