Trying to learn HTML and CSS and I have a simple question.
How can I give each row a different color in a table? For example row 1 is red, row 2 is blue etc.
The below small piece of code should change the color table row.
table, td, th { border: 1px solid red; } th { background-color: red; color: black; }
Source: http://www.snoopcode.com/css/css-tables