only-of-type (:only-of-type)

The only-of-type CSS pseudo-class represents any element that has no siblings of the given type.

Example

<!DOCTYPE html>
<html>
<head>
<style>
p:only-of-type {
	background: #ff0000;
}
</style>
</head>
<body>
	<div>
		<p>This is a paragraph.</p>
	</div>
	<div>
		<p>This is a paragraph.</p>
		<p>This is a paragraph.</p>
	</div>
</body>
</html>