We can alternate the color of table row i.e different color to odd and even rows to make it more attractive by using css.

tr:nth-child(even)
{
background-color: #000000; //for even rows
}

or

tr:nth-child(odd)
{
background-color: #000000; // for odd rows
}

LEAVE A REPLY