Adding Background-color in the row of the table

 tr:nth-child(odd) {
  background: #333;
  color: white; /* Set text color for better contrast */
}

I did this in the Code pen editor and also ran it on MDN.