<!DOCTYPE html>
<html lang="en-US">
<head>
<style>
p:nth-child(3n+0){
color: red;
}
</style>
</head>
<body>
<h1>CSS :nth-child() Selector</h1>
<h2>Heading 2</h2>
<p>This is 3rd child (p) of its parent (body).</p>
<p>This is 4th child (p) of its parent (body).</p>
<p>This is 5th child (p) of its parent (body).</p>
<p>This is 6th child (p) of its parent (body).</p>
<p>This is 7th child (p) of its parent (body).</p>
<p>This is 8th child (p) of its parent (body).</p>
<p>This is 9th child (p) of its parent (body).</p>
</body>
</html>