Alternating rows, a.k.a. zebra striping is kind on the eyes. It allows the eye to easily follow rows in a table, or differentiate list items from each other. I see people asking how to do this all the time. And I’ve seen a lot of needlessly complex answers. This can be done in one line.
via Alternating Rows in PHP | Mark on WordPress.