+
-
* tag.identifiertag can be universal, explicit or
implicit.identifierstags with
class set to identifiertag#identifiertag can be universal, explicit or
implicittag (singular!)
with id set to identifiertag[identifier]tag[identifier="value"]tag can be universal, explicit or
implicittags 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>childselector+siblingselector~siblingselector:pseudoclass
(can be chained):link,
:visited
(for <a>):active,
:hover,
:focus,
:lang,
:first-childConsider 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.