thead:nth-child(1) {background-color: blue; color:white;}

.table1{
    tr:nth-last-child(4n+4) {background-color: yellow;}
    tr:nth-last-child(4n+2) {background-color: red;}
    tfoot{background-color: grey; color:white;}
}

.table2{
    td:nth-last-child(4n +4) {background-color: grey; color: white;}
    tr:nth-child(2n + 2) {background-color: lightgrey;}
    tfoot{background-color: grey; color:white;}
}

.table3{
    tr:nth-child(even) {background-color: lightgrey;}
    tfoot{background-color: lightblue;}

}