Text properties

This paragraph follows a heading, so h2 + p would reach it.

text-transform: uppercase

text-transform: capitalize

letter-spacing: two pixels

word spacing of one em

text-decoration: underline

text-decoration: line-through

Borders

Only none and hidden used to differ from solid. These are four separate styles.

border-style: solid
border-style: dashed
border-style: dotted
border-style: double

Lists

Counter styles

Each list below asks for a different list-style-type.

  1. lower latin
  2. second
  1. upper roman
  2. second
  1. lower greek
  2. second
  1. leading zero
  2. second

Selectors

Structural pseudo-classes

li:nth-child(odd) and li:nth-child(even):

Cascade order

Two rules of equal specificity. The one written later in the stylesheet wins, whatever the class names sort like, so this reads blue.

.zebra then .alpha — the later rule wins