Edit in JSFiddle

p + p { color: red; }
p ~ p { font-weight: bold; }
<pre>p + p { color: red; }
p ~ p { font-weight: bold; }
</pre>
<br>
<p>paragraph 1</p>
<p>paragraph 2</p>
<p>paragraph 3</p>
<div>div</div>
<p>paragraph 4</p>
<p>paragraph 5</p>
<p>paragraph 6</p>