ta tabela występuje jako pierwsza w DOM id="tab4" table:first-child{ background-color:#85EA6C;}
Month Savings
Sum $180
January $100
February $80
ta tabela występuje jako druga w DOM id="tab1" #tab1 tr:first-child{background-color:rgb(227,152,206);} #tab1 tr:last-child{background-color:#6D4461;}
abcdert
alaola
xcvssss
wsxrfv
id="tab2" table th:first-child{ color:red; }
First Name Last Name Points
Jill Smith 50
Eve Jackson 94
John Doe 80
#tab3 tr:nth-child(3n){ background-color:#85EA6C; } #tab3 tr:nth-child(3n+1){ background-color:#4E46D7; } #tab3 tr:nth-child(3n+2){ background-color:#FAEF21; }
Jill Smith 50
Eve Jackson 94
Jill Smith 50
Eve Jackson 94
Jill Smith 50
Eve Jackson 94
Jill Smith 50
Eve Jackson 94