<html>
<head>
<style>
p:nth-last-child(odd) {
background-color: red;
}
p:nth-last-child(even) {
background-color: blue;
}
</style>
</head>
<body>
<h1>Demo of nth-last-child()</h1>
<p>The first paragraph.</p>
<p>The second paragraph.</p>
<p>The third paragraph.</p>
<p>The fourth paragraph.</p>
<p>The fifth paragraph.</p>
</body>
</html>