--- title: table CSS --- <style> body { margin: 0; padding: 0; color: #333; font-size: 16px; box-sizing: border-box; } a:link { color: red; } /* visited link */ a:visited { color: green; } /* mouse over link */ a:hover { color: hotpink; } /* selected link */ a:active { color: blue; } thead th { background: grey; color:white; } tbody tr:nth-child(odd){ background-color: #4C8BF5; color: #fff; } tbody tr:nth-child(even){ background-color: #FF00FF; color: #000; } </style>