table#checkerboard tr:nth-child(even) td:nth-child(even),
 table#checkerboard tr:nth-child(odd) td:nth-child(odd)
 {color: black; background: white;}
table#checkerboard tr:nth-child(even) td:nth-child(odd),
 table#checkerboard tr:nth-child(odd) td:nth-child(even)
 {color: white; background: black;}
r1c1r1c2r1c3r1c4r1c5r1c6r1c7r1c8
r2c1r2c2r2c3r2c4r2c5r2c6r2c7r2c8
r3c1r3c2r3c3r3c4r3c5r3c6r3c7r3c8
r4c1r4c2r4c3r4c4r4c5r4c6r4c7r4c8
r5c1r5c2r5c3r5c4r5c5r5c6r5c7r5c8
r6c1r6c2r6c3r6c4r6c5r6c6r6c7r6c8
r7c1r7c2r7c3r7c4r7c5r7c6r7c7r7c8
r8c1r8c2r8c3r8c4r8c5r8c6r8c7r8c8
table#alt-row {background: white;}
table#alt-row tr:nth-child(3n+1) {background: silver;}
table#alt-row td:nth-child(2n+4) {font-weight: bold; font-style: italic;}
r1c1r1c2r1c3r1c4r1c5r1c6r1c7r1c8
r2c1r2c2r2c3r2c4r2c5r2c6r2c7r2c8
r3c1r3c2r3c3r3c4r3c5r3c6r3c7r3c8
r4c1r4c2r4c3r4c4r4c5r4c6r4c7r4c8
r5c1r5c2r5c3r5c4r5c5r5c6r5c7r5c8
r6c1r6c2r6c3r6c4r6c5r6c6r6c7r6c8
r7c1r7c2r7c3r7c4r7c5r7c6r7c7r7c8
r8c1r8c2r8c3r8c4r8c5r8c6r8c7r8c8
div.typetest p:first-of-type {color: gray; background: cyan;}
div.typetest p:not-first-of-type {font-style: italic;}
div.typetest p:last-child {text-decoration: underline;}
div.typetest p:not(:last-child) {border: 2px dotted purple;}

This is a paragraph which is first in the DIV.

Another paragraph.

Heading-3

And yet another paragraph.