If you're looking to do this in order to color alternate rows of a table, you can also do this in CSS using nth-child selectors: http://www.w3.org/Style/Examples/007/evenodd.en.html