<!DOCTYPE html>
<html>
<head>
<title>Заголовок документа</title>
<style>
p:only-child {
background: #1c87c9;
}
</style>
</head>
<body>
<h2>Пример селектора :only-child</h2>
<div>
<p>Lorem Ipsum - это текст-"рыба".</p>
</div>
<div>
<p>Lorem Ipsum - это текст-"рыба".</p>
<p>Lorem Ipsum - это текст-"рыба".</p>
</div>
</body>
</html>