table {
  border-collapse: collapse;
  width: 60%;
}

th, td {
  border: 1px solid black;
  padding: 6px;
}
th {
  background: #eee;
}

tr:nth-child(odd) {
    background-color: #f2f2f2;
}

tr:nth-child(even) {
    background-color: #ffffff;
}
