<h2>nth-childのテストです。</h2>
<p>1つ目のテキスト</p>
<p>2つ目のテキスト</p>
<p>3つ目のテキスト</p>
<p>4つ目のテキスト</p>
p:nth-of-type(1) {
	color: blue;
	font-weight: bold;
}

p:nth-of-type(2) {
	color: red;
	font-weight: bold;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.