p {/* style rules */}
p.classname {/* style rules */}
.classname {/* style rules */}
#idname {/* style rules */}
thead th {/* style rules */}
* {/* style rules */}
a:hover {/* style rules */}
input:focus {/* style rules */}
li:first-child {/* style rules */}
input[type="submit"] {/* style rules */}
body > p {/* style rules */}
Note the use of comments in CSS -- they start with /*
and end with */
. Comments can be on a single line or multi-line.
p.vibrate {
/* These paragraphs will vibrate off the page! */
color: red;
background-color: blue;
}
p.subtle {
/* These paragraphs will
be subtle and
probably hard to read */
color: white;
background-color: gray;
}
Copyright © David Heitmeyer