Go to conditional formatting and select the option to use your own formula. Paste that in and set your formatting.
MOD takes the remainder. This takes the row # divided by two, so even rows will have a remainder of 0, while odd rows will have a remainder of 1. All of the 1's get formatted and all of the 0's are blank.