+
-
*
tag.identifier
tag
can be universal, explicit or
implicit.identifiers
tag
s with
class
set to identifier
tag#identifier
tag
can be universal, explicit or
implicittag
(singular!)
with id
set to identifier
tag[identifier]
tag[identifier="value"]
tag
can be universal, explicit or
implicittag
s with
identifier
attribute (set to
value
)=
:
|=
for prefix match of hyphenated
value
(what?!)~=
for match in list of space-separated words^=
for prefix match (CSS3)$=
for suffix match (CSS3)*=
for substring match (CSS3)parent>child
selector+sibling
selector~sibling
selector:pseudoclass
(can be chained):link
,
:visited
(for <a>
):active
,
:hover
,
:focus
,
:lang
,
:first-child
Consider the department's home page. Write down the following CSS selectors:
<div>
You don't need to actually change any properties; I just want the selectors.
© 2007 Calvin College and Jeremy D.
Frens.
This work is licensed under a Creative
Commons Attribution-Noncommercial-Share Alike 3.0 United States
License.