Striped HTML Table
Use nth-child on body rows to improve scanning. Keep semantic headers and captions.
Example
<table class="demo-table"><caption>Inventory</caption><thead><tr><th scope="col">Item</th><th scope="col">Qty</th></tr></thead><tbody><tr><td>Book</td><td>2</td></tr><tr><td>Pen</td><td>5</td></tr></tbody></table>
<style>.demo-table{border-collapse:collapse;width:100%}.demo-table td,.demo-table th{padding:8px;text-align:left;border-bottom:1px solid #ddd}.demo-table tbody tr:nth-child(odd){background:#eef4ff}</style>