p:last-child { background-color: #FFF200; }
<p>This is the first paragraph</p> <p>This is the second paragraph</p> <p>This is the third paragraph</p> <p>This is the fourth paragraph</p> <p>This is the fifth paragraph</p>