html tutorial - How to highlight the background of alternate table row using CSS - html5 - html code - html form
Answer: Use the CSS ":nth-child" selector
This shows how to focus on the background of alternate table row using the CSS3
:nth-child selector. The
:nth-child(N) pseudo-class accepts an argument
N, which can be a keyword, a number, or a number expression of the shap
y are integers (e.g.
1n, 2n, 3n, 2n+1, 3n-2, …).