Get the code of CSS nth-child and watch video tutorials. You can practice using our code editor. Our practical guide will make your learning journey much easier. You can explore the tutorial and learn.
<p>Paragraph 1</p>
<p>Paragraph 1</p>
<p>Paragraph 1</p>
<p>Paragraph 1</p>
<p>Paragraph 1</p>p {
background: green;
color: white;
}
p:nth-child(3) {
background: red;
}