Document Tree Pseudo-Classes

Report a typo

Following the code snippet, what will be the color of the second list item?

li:nth-child(even) { color: tomato; }
li:nth-child(odd) { color: skyblue; }
li:second-child { color: black; }
<ul>
  <li>Item 1</li>
  <li>Item 2</li>
  <li>Item 3</li>
  <li>Item 4</li>
  <li>Item 5</li>
  <li>Item 6</li>
  <li>Item 7</li>
  <li>Item 8</li>
</ul>
Select one option from the list

Create a free account to access the full topic