3 methods
.oddor.evenon every<tr>inside<tbody>tr:nth-child(odd)&tr:nth-child(even)- Bootstrap
Slides
CSS Building Blocks: Selectors
To understand the striped tables, go over Child-Indexed Pseudo-Class Selectors, especially :nth-child, in these slides.