<html>
<head>
<style>
p:nth-last-child(odd) {
background: red;
}
p:nth-last-child(even) {
background: blue;
}
</style>
</head>
<body>
<p>The first paragraph.</p>
<p>The second paragraph.</p>
<p>The third paragraph.</p>
</body>
<!-- Mirrored from www.w3schools.com/cssref/tryit.php?filename=trycss3_nth-last-child_odd_even by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 21 Dec 2022 17:38:45 GMT -->
</html>