<!DOCTYPE html>
<html>
<head>
<title>Заголовок документа</title>
<style>
p:nth-child(3) {
background: #ccc;
}
</style>
</head>
<body>
<h2>Пример селектора :nth-child</h2>
<div>
<p>Параграф 1</p>
<p>Параграф 2</p>
<p>Параграф 3</p>
<p>Параграф 4</p>
<div>
</body>
</html>